File: random.h
This file exports functions for generating pseudorandom numbers.
In most cases, the builtin random library should be used, but this
class offers some nice conveniences.
Note: the methods are named in consistency with the random module
-
class
campy.util.randomgenerator.
RandomGenerator
[source]
Bases: random.Random
-
classmethod
get_instance
()[source]
-
randbool
()[source]
-
randchance
(p)[source]
-
randint
(low, high)[source]
Return random integer in range [a, b], including both end points.
-
randreal
(low=0, high=1)[source]