RandomNumGen

Inheritance:

Methods of RandomNumGen:

__init__
def __init__(self, seed)

seed must be an integer or another RandomNumGen

__rand
def __rand(self, N)

returns integer in [0..N)

choice
def choice(self, seq)

returns a random element from seq

randint
def randint(self, a, b)

returns integer in [a, b]

random
def random(self)

returns random float in [0.0, 1.0)

randrange
def randrange(self, start, stop=None, step=1)

randrange([start,] stop[, step]) same as choice(range(start, stop[, step])) without construction of a list

shuffle
def shuffle(self, x)

randomly shuffles x in-place