random_source


random_source()
      

Return a new random source object initialized to a predetermined state.

Examples:


let rs = random_source()
let ri = random_source_for_integers(rs)
let rr = random_source_for_reals(rs) 
let ra = random_source_for_byte_arrays(rs)

ri(10)
//  ...a random integer..

rr()
//  ...a random real...

ra(10)
//  #u8[...array of 10 random bytes...]
      

Also see:

default_random_source
random_source_state
random_source_randomize


Core Module Index | Contents