From 6a5f5d2de6a302b3775db8710f2485c8acdb5550 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kochma=C5=84ski?= Date: Mon, 21 Sep 2015 19:38:30 +0200 Subject: [PATCH] doc: update random-sates section MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Kochmański --- doc/ansi_numbers.xml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) 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 + -- 2.9.0