---
title: "random::half_01_using"
framework: Compute Graph
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/random/half_01_using
---

# random::half_01_using

Generates a pseudo-random half-precision float between 0 and 1 using a specific seed.

## Declaration

```swift
half random::half_01_using(uint seed)
```

## Parameters

- `seed`: The seed value to use for random number generation.

## Return Value

Return Value A pseudo-random half-precision float in the range [0.0, 1.0].

## Discussion

Discussion This function generates a random value in the range [0.0, 1.0] using half-precision floating-point format and the provided seed. The seed is not modified, allowing for reproducible random number generation. note:
