|
Smalltalk/X WebserverDocumentation of class 'RandomParkMiller': |
|
|
Class: RandomParkMillerInheritance:Object | +--RandomParkMiller
Description:
Warning: this generator should not be used for cryptographic work.
NO WARRANTY
Another pseudo-random number generator
The ParkMiller random generator (although better than the old Random), is not recommended
when a high quality random is required (for example, for cryptographic work).
Applications should use either the OS-random generator or a LaggedFibonacci generator.
This is because the random values provided by the Park-Miller generator are double precision
floating point numbers which have up to 53 significant bits. Since only the first 31 bits
of their mantissa are known to have good random properties, the behavior of the remaining
22 bits is undefined.
In particular, bit aliasing occurs during the calculation of the next random value,
and bit 22 of the mantissa is always 1.
Please read:
Standard reference by Park and Miller in
'Random Number Generators: Good Ones Are Hard to Find',
Comm. ACM, 31:1192-1201, 1988.
Related information:
http://www0.cs.ucl.ac.uk/staff/d.jones/GoodPracticeRNG.pdf
RandomGenerator
-
the
default;
uses
the
machine's
/dev/random
if
available
Random
-
fast,
but
generates
less
quality
random
numbers
RandomTT800
-
another
random
generator
RandomMT19937
-
a
better
random
generator
RandomKISS
-
fast
and
better
random
generator
Class protocol:initialization
Instance protocol:accessing-reading
|
|
|
ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 17 Dec 2025 06:38:28 GMT
|