documentation
authorClaus Gittinger <cg@exept.de>
Sat, 17 Nov 2001 12:08:36 +0100
changeset 998 5f66a2dd6b7d
parent 997 27886200e6df
child 999 c702e6ff076e
documentation
Random.st
RandomParkMiller.st
RandomTT800.st
--- a/Random.st	Fri Nov 16 13:32:23 2001 +0100
+++ b/Random.st	Sat Nov 17 12:08:36 2001 +0100
@@ -88,7 +88,8 @@
         Claus Gittinger
 
     [see also:]
-        RandomTT800 - a new random generator
+        RandomTT800      - a new random generator
+        RandomParkMiller - another new random generator
 "
 !
 
@@ -545,5 +546,5 @@
 !Random class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic2/Random.st,v 1.29 2001-10-02 09:59:29 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic2/Random.st,v 1.30 2001-11-17 11:08:36 cg Exp $'
 ! !
--- a/RandomParkMiller.st	Fri Nov 16 13:32:23 2001 +0100
+++ b/RandomParkMiller.st	Sat Nov 17 12:08:36 2001 +0100
@@ -15,6 +15,20 @@
 
     Another pseudo-random number generator
 
+    Please read:
+        Standard reference by Park and Miller in 
+            'Random Number Generators: Good Ones Are Hard to Find',
+        Comm. ACM, 31:1192-1201, 1988.
+
+    [see also:]
+        Random  - fast, but generates less quality random numbers
+        RandomTT800 - another random generator
+"
+!
+
+testing
+"
+
     |r|
 
     r := self new.
@@ -104,6 +118,6 @@
 !RandomParkMiller class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic2/RandomParkMiller.st,v 1.1 2001-10-02 09:33:33 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic2/RandomParkMiller.st,v 1.2 2001-11-17 11:08:33 cg Exp $'
 ! !
 RandomParkMiller initialize!
--- a/RandomTT800.st	Fri Nov 16 13:32:23 2001 +0100
+++ b/RandomTT800.st	Sat Nov 17 12:08:36 2001 +0100
@@ -58,7 +58,7 @@
     PLEASE READ THE FOLLOWING NOTICE AND DISCLAIMER CAREFULLY
     BEFORE DOWNLOADING THIS SOFTWARE.  BY DOWNLOADING THIS SOFTWARE
     YOU ARE AGREEING TO BE BOUND BY THESE TERMS.  IF YOU DO NOT AGREE
-    TO THE TERMS, DO NOT DOWNLOAD.
+    TO THE TERMS, DO NOT DOWNLOAD.
 
     This software (Software), provided by IBM Corporation, may
     contain, or be derived from, code provided by Apple Computer,
@@ -207,6 +207,10 @@
 
     The generalized feed back shift register (GFSR) algorithm suggested by Lewis and Payne is a widely used pseudorandom number generator, but has the following serious drawbacks: (1) an initialization scheme to assure higher order equidistribution is involved and is time consuming; (2) each bit of the
     generated words constitutes an m-sequence based on a primitive trinomials, which shows poor randomness with respect to weight distribution; (3) a large working area is necessary; (4) the period of sequence is far shorter than the theoretical upper bound. This paper presents the twisted GFSR (TGFSR) algorithm, a slightly but essentially modified version of the GFSR, which solves all the above problems without loss of merit. Some practical TGFSR generators were implemented and passed strict empirical tests. These new generators are most suitable for simulation of a large distributive system, which requires a number of mutually independent pseudorandom number generators with compact size.
+
+    [see also:]
+        Random  - fast, but generates less quality random numbers
+        RandomParkMiller - a good one (according to literature)
 "
 !
 
@@ -402,5 +406,5 @@
 !RandomTT800 class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic2/RandomTT800.st,v 1.2 2001-01-09 13:32:45 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic2/RandomTT800.st,v 1.3 2001-11-17 11:08:30 cg Exp $'
 ! !