Contents

random::half4_01_using

Generates a pseudo-random 4D vector with half-precision components between 0 and 1 using a specific seed.

Declaration

half4 random::half4_01_using(uint seed)

Parameters

  • seed:

    The base seed value to use for random number generation.

Return Value

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

Discussion

This function generates a random 4D vector where each component is independently generated in the range [0.0, 1.0] using half-precision floating-point format and sequential seed values (seed, seed+1, seed+2, seed+3). The seed is not modified, allowing for reproducible random number generation.