MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ fast_uniform()

double MayaFlux::Nodes::Generator::Stochastics::Random::fast_uniform ( )
inlineprivatenoexcept

Fast uniform random number generator using xorshift algorithm.

Returns
Pseudo-random double in the range [0.0, 1.0)

This method implements a simple and efficient xorshift algorithm to produce uniform random numbers quickly, suitable for high-performance applications where speed is critical.

Definition at line 296 of file Stochastic.hpp.

297 {
301 return static_cast<double>(m_xorshift_state * 0x2545F4914F6CDD1DULL)
302 * (1.0 / 18446744073709551616.0);
303 }
uint64_t m_xorshift_state
Internal state for xorshift random number generation.

Referenced by generate_distributed_sample().

+ Here is the caller graph for this function: