<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/random/float_01_using",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "random::float_01_using"
  },
  "title" : "random::float_01_using"
}
-->

# random::float_01_using

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

```
float random::float_01_using(uint seed)
```

## Parameters

`seed`

The seed value to use for random number generation.

## Return Value

A pseudo-random single-precision float in the range [0.0, 1.0].

## Discussion

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

> Visual: ![Graph](random__float_01_using)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)