12.2. Random-States

ECL relies internally on a 32-bit Mersenne-Twister random number generator, using a relatively large buffer to precompute about 5000 pseud-random bytes. This implies also that random states can be printed readably and also read, using the #$ macro. There is no provision to create random states from user arrays, though. Random state is printed unreadably by default.

The #$ macro can be used to initialize generatorr with the random seed (an integer), an array of random bytes (mainly used for reading back printed random-state) and an another random-state (syntactic sugar for copying of the random-state).