Contents

random::float_01

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

Declaration

float random::float_01()

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 increments the internal random seed for subsequent calls.