jubilant-funicular
Static Public Member Functions | Static Private Attributes | List of all members
nta::Random Class Reference

Used for generating random numbers. More...

#include <Random.h>

Collaboration diagram for nta::Random:
Collaboration graph
[legend]

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
 

Detailed Description

Used for generating random numbers.

Definition at line 14 of file Random.h.


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