From: Daniel Kochmański Date: Mon, 21 Sep 2015 17:38:30 +0000 (+0200) Subject: doc: update random-sates section X-Git-Url: http://git.pulsar-zone.net/?a=commitdiff_plain;h=6a5f5d2de6a302b3775db8710f2485c8acdb5550;p=ecl.git doc: update random-sates section Signed-off-by: Daniel Kochmański --- diff --git a/doc/ansi_numbers.xml b/doc/ansi_numbers.xml index 2980fb9..782e98d 100644 --- a/doc/ansi_numbers.xml +++ b/doc/ansi_numbers.xml @@ -88,10 +88,30 @@
Random-States - &ECL; relies internally on a 32-bit or 64-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. + &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). + + + + + + +
- \ No newline at end of file +