|
resonance 1.0.1
|
Go to the source code of this file.
Functions | |
| int | NextRandomValue () |
| Advance the shared seed and return it. | |
Variables | |
| int | gRandom |
| Seed of NextRandomValue(), 1 until the first draw. | |
| int NextRandomValue | ( | ) |
Advance the shared seed and return it.
The step is the RANDU generator, the seed times 65539 masked to 31 bits, so every result is non-negative and odd.
|
extern |
Seed of NextRandomValue(), 1 until the first draw.
NextRandomValue() is the only reader and the only writer.