Definition at line 86 of file r250.py. 00086 : 00087 "seed from the built in RNG python provides, and then scramble results a little" 00088 random.Random.seed(self, seed) 00089 seeds=[ 00090 int( ((long(math.floor(random.random()*32768.0)) << 16) & 0x7fff0000) | long(math.floor(random.random()*65536.0))) for i in range(self.p)] 00091 self.ranbuf=Numeric.array(seeds, numeric_int32) 00092 00093 for i in range(self.p): #scramble the dubious randoms from the default generator to start the system 00094 self.regenerate() 00095 def regenerate(self):
|