![]() |
Simulant
21.12-166
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
|
Public Member Functions | |
RandomGenerator (uint32_t seed) | |
template<typename T > | |
T | choice (T *array, std::size_t count) |
template<typename T > | |
T | choice (const std::vector< T > &choices) |
template<typename T > | |
void | shuffle (T *array, std::size_t count) |
template<typename T > | |
void | shuffle (std::vector< T > &choices) |
template<typename T > | |
std::vector< T > | shuffled (const std::vector< T > &choices) |
float | float_in_range (float lower, float upper) |
int32_t | int_in_range (int32_t lower, int32_t upper) |
smlt::Vec2 | point_in_circle (float diameter) |
smlt::Vec3 | point_in_sphere (float diameter) |
smlt::Vec2 | point_on_circle (float diameter) |
smlt::Vec3 | point_on_sphere (float diameter) |
smlt::Vec2 | direction_2d () |
smlt::Vec3 | direction_3d () |