Contents

random::half2_01

Generates a pseudo-random 2D vector with half-precision components between 0 and 1.

Declaration

half2 random::half2_01()

Return Value

A pseudo-random 2D half-precision vector with components in the range [0.0, 1.0].

Discussion

This function generates a random 2D vector where each component is independently generated in the range [0.0, 1.0] using half-precision floating-point format. The internal random seed is incremented for subsequent calls.