RandomMT19937.st
changeset 3389 25702635a819
parent 3355 92d0293365af
child 3396 5fa94292e275
equal deleted inserted replaced
3388:379593c9d8ae 3389:25702635a819
   265 !RandomMT19937 class methodsFor:'instance creation'!
   265 !RandomMT19937 class methodsFor:'instance creation'!
   266 
   266 
   267 new
   267 new
   268     ^ self basicNew 
   268     ^ self basicNew 
   269         initialize;
   269         initialize;
   270         initGenRand:(Time millisecondClockValue)
   270         initGenRand:(Random randomSeed bitAnd:16rFFFFFFFF)
   271 !
   271 !
   272 
   272 
   273 new:seed
   273 new:seed
   274     ^ self basicNew 
   274     ^ self basicNew 
   275         initialize;
   275         initialize;
   408 ! !
   408 ! !
   409 
   409 
   410 !RandomMT19937 class methodsFor:'documentation'!
   410 !RandomMT19937 class methodsFor:'documentation'!
   411 
   411 
   412 version
   412 version
   413     ^ '$Header: /cvs/stx/stx/libbasic2/RandomMT19937.st,v 1.3 2014-10-01 12:50:57 cg Exp $'
   413     ^ '$Header: /cvs/stx/stx/libbasic2/RandomMT19937.st,v 1.4 2014-10-01 15:17:16 cg Exp $'
   414 !
   414 !
   415 
   415 
   416 version_CVS
   416 version_CVS
   417     ^ '$Header: /cvs/stx/stx/libbasic2/RandomMT19937.st,v 1.3 2014-10-01 12:50:57 cg Exp $'
   417     ^ '$Header: /cvs/stx/stx/libbasic2/RandomMT19937.st,v 1.4 2014-10-01 15:17:16 cg Exp $'
   418 ! !
   418 ! !
   419 
   419