RNG

std.random wrapper

Constructors

this
this(uint p_seed)

Creates RNG struct with set seed

Members

Aliases

defaultSeed
alias defaultSeed = Random.defaultSeed

Alias to default seed

randd
alias randd = randT!double

Typed alias to get random value

randf
alias randf = randT!float
randi
alias randi = randT!int
randl
alias randl = randT!long

Typed alias to get random value

randomSeed
alias randomSeed = unpredictableSeed

Alias to unpredictable seed

randomise
alias randomise = randomize

Randomizes seed

randr
alias randr = randT!real

Typed alias to get random value

Functions

random
uint random()

Returns random uint

randomize
void randomize()

Randomizes seed

seed
uint seed()

Returns current seed

setSeed
void setSeed(uint p_seed)

Sets custom seed p_seed

skip
void skip()

Skips current random value

skipTo
void skipTo(ulong numCalls)

Skips N amount of random values

Templates

randT
template randT(T : float)
Undocumented in source.

Meta