parrotcode: Random Numbers | |
Contents | PMCs |
classes/random.pmc - Random Numbers
These are the vtable functions for the Random base class.
This is a singleton (monadic) class - only one instance exists.
void *get_pointer()
void set_pointer(void *ptr)
void set_integer_native(INTVAL seed)
seed
.INTVAL get_integer()
-2^31..2^31
.INTVAL get_integer_keyed_int(INTVAL max)
0..max
.FLOATVAL get_number()
0.0..1.0
.2003.12.10 first rev by leo.
|