Index of values

B
bit [PRNG.PURE]
bit [PRNG.STATE]

Return a Boolean value in false,true with 0.5 probability each.

bits [PRNG.PURE]
bits [PRNG.STATE]
bits30 [PRNG.PURE]
bits30 [PRNG.STATE]

Return a 30-bit integer evenly distributed between 0 and 230-1 (that is, 1073741823, or 0x3FFFFFFF).

bits32 [PRNG.PURE]
bits32 [PRNG.STATE]

Return a 32-bit integer evenly distributed between and .

bits64 [PRNG.PURE]
bits64 [PRNG.STATE]

Return a 64-bit integer evenly distributed between and .

bits8 [PRNG.PURE]
bits8 [PRNG.STATE]

Return an 8-bit integer evenly distributed between 0 and 255.

bool [PRNG.PURE]
bool [PRNG.STATE]
byte [PRNG.PURE]
byte [PRNG.STATE]
bytes [PRNG.STATE]

bytes g b ofs len produces len bytes of pseudo-random data and stores them in byte sequence b at offsets ofs to ofs+len-1.

C
char [PRNG.PURE]
char [PRNG.STATE]

Return a character evenly distributed among '\000' ... '\255'.

copy [PRNG.STATE]

copy g returns a generator g' that has the same state as g.

F
float [PRNG.PURE]
float [PRNG.STATE]

float g x returns a floating-point number evenly distributed between 0.0 and x.

I
int [PRNG.PURE]
int [PRNG.STATE]

int g n returns an integer evenly distributed between 0 included and n excluded.

int32 [PRNG.PURE]
int32 [PRNG.STATE]

int32 g n returns a 32-bit integer evenly distributed between 0 included and n excluded.

int64 [PRNG.PURE]
int64 [PRNG.STATE]

int64 g n returns a 64-bit integer evenly distributed between 0 included and n excluded.

M
make [PRNG.PURE]
make [PRNG.STATE]

Initialize a generator from the given seed.

make_self_init [PRNG.PURE]
make_self_init [PRNG.STATE]

Initialize a generator from a random seed obtained from the operating system.

N
nativebits [PRNG.PURE]
nativebits [PRNG.STATE]

nativebits g returns a platform-native integer (32 or 64 bits) evenly distributed between and .

nativeint [PRNG.PURE]
nativeint [PRNG.STATE]

nativeint g n returns a platform-native integer between 0 included and n included.

R
remake [PRNG.STATE]

remake g a reinitializes the generator g with fresh seed data from array a.

reseed [PRNG.STATE]

reseed g s reinitializes the generator g with fresh seed data from string s.

S
seed [PRNG.PURE]
seed [PRNG.STATE]

Initialize a generator from the given seed.

split [PRNG.PURE]
split [PRNG.STATE]

split g returns a fresh generator g' that is statistically independent from the current generator g.

U
uniform [PRNG.PURE]
uniform [PRNG.STATE]

Return a floating-point number evenly distributed between 0.0 and 1.0.