resonance 1.0.1
Loading...
Searching...
No Matches
r250.h
Go to the documentation of this file.
1#pragma once
2
6constexpr int kR250TableSize = 256;
7
18
25extern int g_nR250Index;
26
33extern int g_nR250LagIndex;
34
47void SeedR250(int nSeed);
48
60
70int RandomInt(int nLow, int nHigh);
71
constexpr int kR250TableSize
Words in the R250 generator's state table.
Definition r250.h:6
float RandomFloat()
Draw a float in [0, 1).
int g_nR250LagIndex
Index of the word NextR250() combines with the replaced one.
int g_nR250Index
Index of the word NextR250() replaces next.
int RandomInt(int nLow, int nHigh)
Draw an integer in a half-open range.
int NextR250()
Draw the next value.
int g_aR250Table[kR250TableSize]
State table of the R250 generator.
void SeedR250(int nSeed)
Fill the state table from a linear congruential sequence and reset both indices.