17inline uint32_t s[4] = { 123, 234, 345, 97 };
18inline constexpr double DOUBLE_UNIT = 0x1.0p-53;
19inline constexpr float FLOAT_UNIT = 0x1.0p-24f;
21inline uint32_t next (
void)
23 const uint32_t result = s[0] + s[3];
25 const uint32_t t = s[1] << 9;
34 s[3] = std::rotl (s[3], 11);
49 return (next() >> 8) * FLOAT_UNIT;
58 return (next() >> 7) * FLOAT_UNIT - 1.0f;
float noise()
White noise.
Definition: ame_Random.hpp:56
float random()
Random.
Definition: ame_Random.hpp:47