Angara.Statistics


MT19937

Namespace: Angara
Parent Module: Statistics

Constructors

ConstructorDescription
new(copy)
Signature: copy:MT19937 -> MT19937

CompiledName: .ctor

new(seed)
Signature: (seed:uint32 []) -> MT19937

CompiledName: .ctor

new(seed)
Signature: (seed:uint32 option) -> MT19937

CompiledName: .ctor

Instance members

Instance memberDescription
bernoulli(p)
Signature: p:float<MeasureOne> -> bool

generates 'true' with probability 'p' or 'false' with probability '1-p'

get_seed()
Signature: unit -> uint32 []

returns an array that allows to exactly restore the state of the generator.

normal()
Signature: unit -> float

generates a sample from standard normal distribution N(0,1) using ziggurat algorithm.

uniform_float64()
Signature: unit -> float

generates a random number on [0,1)-real-interval

uniform_int(max)
Signature: max:int -> int

generates a random number on [0,max]-int-interval

uniform_uint32()
Signature: unit -> uint32

generates a random number on [0,0xffffffff]-interval

Fork me on GitHub