Random Module

Uniform random number generators

Types

Type Description

IRandom

Interface that every uniform random number generator must implement.

RandBasic

RandThreadSafe

Functions and values

Function or value Description

GetSampleGenerator ()

Full Usage: GetSampleGenerator ()

Parameters:
    () : unit

Returns: IRandom

Returns the random number generator used for sampling.

() : unit
Returns: IRandom

SetSampleGenerator rg

Full Usage: SetSampleGenerator rg

Parameters:

Sets the random number generator used for sampling.

rg : IRandom

Example

boxMullerTransform ()

Full Usage: boxMullerTransform ()

Parameters:
    () : unit

Returns: float * float

random number sampling method for pairs of independent, standard, normally distributed random numbers

() : unit
Returns: float * float

rndgen

Full Usage: rndgen

Returns: IRandom

The uniform random source used for sampling functions.

Returns: IRandom

Example