Module _random :: Class Random
[hide private]
[frames] | no frames]

type Random

object --+
         |
        Random
Known Subclasses:

Random() -> create a random number generator with its own internal state.

Instance Methods [hide private]
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
a new object with type S, a subtype of T
__new__(T, S, ...)
x
getrandbits(k)
Generates a long int with k random bits.
tuple containing the current state.
getstate()
None
jumpahead(int)
Create new state from existing state and integer.
x in the interval [0, 1).
random()
None
seed(n=...)
Defaults to current time.
None
setstate(state)
Restores generator state.
Method Details [hide private]

__getattribute__(...)

 

x.__getattribute__('name') <==> x.name

Overrides: object.__getattribute__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__