|
Public Member Functions |
| Random (irr::s32 seedTime) |
| ~Random () |
| Destructor.
|
irr::s32 | randint (void) |
| Generates a psuedo-random integer between 0 and 32767.
|
irr::s32 | randint (irr::s32 max) |
irr::s32 | randint (irr::s32 min, irr::s32 max) |
irr::f32 | randfloat (void) |
| Generates a psuedo-random float between 0.0 and 0.999...
|
irr::f32 | randfloat (irr::f32 max) |
irr::f32 | randfloat (irr::f32 min, irr::f32 max) |
irr::f64 | randdouble (void) |
| Generates a psuedo-random double between 0.0 and 0.999...
|
irr::f64 | randdouble (irr::f64 max) |
irr::f64 | randdouble (irr::f64 min, irr::f64 max) |
You can always define min and max values (a range) where random numbers are generated. You must call randinit() first, otherwise this class will generate predictable numbers (not random numbers).