Panda3D
|
Public Member Functions | |
__init__ (self, seed) | |
choice (self, seq) | |
randint (self, a, b) | |
random (self) | |
randrange (self, start, stop=None, step=1) | |
shuffle (self, x) | |
Static Public Attributes | |
notify | |
__init__ | ( | self, | |
seed ) |
seed must be an integer or another RandomNumGen
choice | ( | self, | |
seq ) |
returns a random element from seq
randint | ( | self, | |
a, | |||
b ) |
returns integer in [a, b]
random | ( | self | ) |
returns random float in [0.0, 1.0)
randrange | ( | self, | |
start, | |||
stop = None, | |||
step = 1 ) |
randrange([start,] stop[, step]) same as choice(range(start, stop[, step])) without construction of a list
shuffle | ( | self, | |
x ) |
randomly shuffles x in-place
|
static |