Random() -> create a random number generator with its own internal
state.
|
|
a new object with type S, a subtype of T
|
|
x
|
getrandbits(k)
Generates a long int with k random bits. |
|
|
tuple containing the current state.
|
|
None
|
jumpahead(int)
Create new state from existing state and integer. |
|
|
x in the interval [0, 1).
|
|
None
|
seed(n=...)
Defaults to current time. |
|
|
None
|
setstate(state)
Restores generator state. |
|
|
Inherited from object :
__delattr__ ,
__hash__ ,
__init__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|