---
title: "random::float_01"
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/float_01
---

# random::float_01

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

## Declaration

```swift
float random::float_01()
```

## Return Value

Return Value A pseudo-random single-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 single-precision floating-point format and increments the internal random seed for subsequent calls. note:
