Definition at line 121 of file r250.py. 00121 : 00122 "return a _really good_ double precision (52 bits significant) random on [0,1) (upper included bound = (1 - 2^-52) )" 00123 q1, q2 = self.next(), self.next() #take 64 bits from the random pool 00124 return float( (long(q1) << 31) | ( long(q2) & 0x7ffffe00L) ) *self.floatscale 00125 def single_float_random(self):
|