Definition at line 151 of file r250.py. 00151 : 00152 "return a series of good single-precision-quality (actually 31 bits embedded in double) randoms on [0,1).(upper included bound = (1 - 2^-31) ) \ 00153 Note: conversion of this number to Float32 could result in rounding to exactly 1.0" 00154 00155 #Warning! NumPy Unsigned-> Float is really signed! 00156 q1 = Numeric.array(self.fast_random_series(count), numeric_float) #take bits from the random pool. 00157 q1*=self.single_floatscale 00158 return q1 00159 def double_float_random_series(self, count):
|