This class replaces the random number generator in Python
with /dev/random or /dev/urandom. If you create an instance
and put it in random._inst then the usual Python random calls
will use /dev/random as the underlying random number generator.
Method Summary |
|
__init__(self,
paranoid)
|
|
getstate (self)
Return internal state; can be passed to setstate() later. |
|
jumpahead(self,
ignore)
|
|
random(self)
|
|
seed(self,
ignore)
|
|
setstate(self,
ignore)
|
Inherited from Random :
__getstate__ ,
__reduce__ ,
__setstate__ ,
betavariate ,
choice ,
expovariate ,
gammavariate ,
gauss ,
lognormvariate ,
normalvariate ,
paretovariate ,
randint ,
randrange ,
sample ,
shuffle ,
uniform ,
vonmisesvariate ,
weibullvariate
Inherited from object :
__delattr__ ,
__hash__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|