proc init_MTState(): MTState {.raises: [], tags: [].}
- initializes and returns a new MTState Source
proc init_genrand(s: var MTState; seed: uint32) {.raises: [], tags: [].}
- initializes mt[N] with a seed Source
proc init_by_array(s: var MTState; init_key: openArray[uint32]) {.raises: [],
tags: [].}
- initialize by an array with array-length. init_key is the array for initializing keys. Source
proc genrand_int32(s: var MTState): uint32 {.raises: [], tags: [].}
- generates a random number on [0,0xffffffff]-interval Source
proc genrand_int31(s: var MTState): int32 {.raises: [], tags: [].}
- generates a random number on [0,0x7fffffff]-interval Source
proc genrand_real1(s: var MTState): float64 {.raises: [], tags: [].}
- generates a random number on [0,1]-real-interval Source
proc genrand_real2(s: var MTState): float64 {.raises: [], tags: [].}
- generates a random number on [0,1)-real-interval Source
proc genrand_real3(s: var MTState): float64 {.raises: [], tags: [].}
- generates a random number on (0,1)-real-interval Source
proc genrand_res53(s: var MTState): float64 {.raises: [], tags: [].}
- generates a random number on [0,1) with 53-bit resolution Source