jubilant-funicular
|
Used for generating random numbers. More...
#include <Random.h>
Static Public Member Functions | |
static void | init () |
initializes random number generation | |
static bool | randBool () |
randomly returns true or false | |
static long | randInt (long min, long max) |
returns a random int in the specified range exclusive (uniform distribution) | |
static long | randInt (long max) |
static long | randInt () |
static float | randFloat (float min, float max) |
returns a random float in the specified range (uniform distribution) | |
static float | randFloat (float max) |
static float | randFloat () |
static float | randGaussian (float mean, float sd) |
returns a random float using the specified distribution | |
static glm::vec3 | randRGB () |
returns a random color | |
static glm::vec4 | randRGBA () |
static glm::vec2 | randVec2 (float min, float max) |
returna a random vector | |
static std::default_random_engine | getRNG () |
returns the random number generator | |
Static Private Attributes | |
static std::default_random_engine | m_generator |