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

# random::half_01

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

```
half random::half_01()
```

## Return Value

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

## Discussion

This function generates a random value in the range [0.0, 1.0] using half-precision
floating-point format and increments the internal random seed for subsequent calls.

> Visual: ![Graph](random__half_01)

---

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)