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. Class protocol:initialization
Instance protocol:accessing-reading
|
|
ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Tue, 03 Dec 2024 17:28:15 GMT |