Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | List of all members
smlt::RandomGenerator Class Reference

Public Member Functions

 RandomGenerator (uint32_t seed)
template<typename T >
choice (T *array, std::size_t count)
template<typename 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 ()

The documentation for this class was generated from the following files: