![]() |
Smalltalk/X WebserverDocumentation of class 'RandomMT19937': |
|
|
Class: RandomMT19937Inheritance:Object | +--RandomMT19937
Description:Warning: this generator should not be used for cryptographic work. NO WARRANTY A Mersenne Twister based on code by Takuji Nishimura and Makoto Matsumoto. Before using, initialize the state by using initGen(seed) or initByArray(init_key). RandomMT19937 new nextInteger (RandomMT19937 new:5489) nextInteger (RandomMT19937 newByArray:{16r123 . 16r234 .16r345 . 16r456}) nextInteger If heavily used, it may be useful to embed the original C code as inline C code for a big speedup) Please read: Wikipedia article on Mersenne Twister end esp. MT19937 http://de.wikipedia.org/wiki/Liste_von_Zufallszahlengeneratoren MT home page http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html 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 RandomParkMiller - another random generator Class protocol:instance creationInstance protocol:initialization
|
|
|
ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 29 Sep 2023 09:58:41 GMT
|