Contents

random::half_01

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

Declaration

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.