Skip to content

function random_next(random_state &) random

Advances the internal state of the pseudo-random number generator.

This function uses a SIMD-optimized linear congruential method with distinct multiplier and adder constants for each 32-bit lane. The resulting values are further randomized using a byte-wise rotate operation.

Parameters
state Reference to the internal random number generator state to update.

Defined at base/random_bits.hpp:83