#include <Rand.h>
|
| Rand () |
|
| Rand (unsigned long seed) |
|
void | seed (unsigned long seedValue) |
| Re-seeds the random generator. More...
|
|
bool | nextBool () |
| returns a random boolean value More...
|
|
int32_t | nextInt () |
| returns a random integer in the range [-2147483648,2147483647] More...
|
|
uint32_t | nextUint () |
| returns a random integer in the range [0,4294967296) More...
|
|
int32_t | nextInt (int32_t v) |
| returns a random integer in the range [0,v) More...
|
|
uint32_t | nextUint (uint32_t v) |
| returns a random integer in the range [0,v) More...
|
|
int32_t | nextInt (int32_t a, int32_t b) |
| returns a random integer in the range [a,b) More...
|
|
float | nextFloat () |
| returns a random float in the range [0.0f,1.0f) More...
|
|
float | nextFloat (float v) |
| returns a random float in the range [0.0f,v) More...
|
|
float | nextFloat (float a, float b) |
| returns a random float in the range [a,b) More...
|
|
float | posNegFloat (float a, float b) |
| returns a random float in the range [a,b] or the range [-b,-a) More...
|
|
Vec3f | nextVec3f () |
| returns a random Vec3f that represents a point on the unit sphere More...
|
|
Vec2f | nextVec2f () |
| returns a random Vec2f that represents a point on the unit circle More...
|
|
float | nextGaussian () |
| returns a random float via Gaussian distribution More...
|
|
|
static void | randomize () |
| Resets the static random generator to a random seed based on the clock. More...
|
|
static void | randSeed (unsigned long seedValue) |
| Resets the static random generator to the specific seed seedValue. More...
|
|
static bool | randBool () |
| returns a random boolean value More...
|
|
static int32_t | randInt () |
| returns a random integer in the range [-2147483648,2147483647] More...
|
|
static uint32_t | randUint () |
| returns a random integer in the range [0,4294967296) More...
|
|
static int32_t | randInt (int32_t v) |
| returns a random integer in the range [0,v) More...
|
|
static uint32_t | randUint (uint32_t v) |
| returns a random integer in the range [0,v) More...
|
|
static int32_t | randInt (int32_t a, int32_t b) |
| returns a random integer in the range [a,b) More...
|
|
static float | randFloat () |
| returns a random float in the range [0.0f,1.0f) More...
|
|
static float | randFloat (float v) |
| returns a random float in the range [0.0f,v) More...
|
|
static float | randFloat (float a, float b) |
| returns a random float in the range [a,b) More...
|
|
static float | randPosNegFloat (float a, float b) |
| returns a random float in the range [a,b) or the range [-b,-a) More...
|
|
static Vec3f | randVec3f () |
| returns a random Vec3f that represents a point on the unit sphere More...
|
|
static Vec2f | randVec2f () |
| returns a random Vec2f that represents a point on the unit circle More...
|
|
static float | randGaussian () |
| returns a random float via Gaussian distribution; refactor later More...
|
|
cinder::Rand::Rand |
( |
unsigned long |
seed | ) |
|
void cinder::Rand::seed |
( |
unsigned long |
seedValue | ) |
|
Re-seeds the random generator.
bool cinder::Rand::nextBool |
( |
| ) |
|
returns a random boolean value
int32_t cinder::Rand::nextInt |
( |
| ) |
|
returns a random integer in the range [-2147483648,2147483647]
uint32_t cinder::Rand::nextUint |
( |
| ) |
|
returns a random integer in the range [0,4294967296)
int32_t cinder::Rand::nextInt |
( |
int32_t |
v | ) |
|
returns a random integer in the range [0,v)
uint32_t cinder::Rand::nextUint |
( |
uint32_t |
v | ) |
|
returns a random integer in the range [0,v)
int32_t cinder::Rand::nextInt |
( |
int32_t |
a, |
|
|
int32_t |
b |
|
) |
| |
returns a random integer in the range [a,b)
float cinder::Rand::nextFloat |
( |
| ) |
|
returns a random float in the range [0.0f,1.0f)
float cinder::Rand::nextFloat |
( |
float |
v | ) |
|
returns a random float in the range [0.0f,v)
float cinder::Rand::nextFloat |
( |
float |
a, |
|
|
float |
b |
|
) |
| |
returns a random float in the range [a,b)
float cinder::Rand::posNegFloat |
( |
float |
a, |
|
|
float |
b |
|
) |
| |
returns a random float in the range [a,b] or the range [-b,-a)
Vec3f cinder::Rand::nextVec3f |
( |
| ) |
|
returns a random Vec3f that represents a point on the unit sphere
Vec2f cinder::Rand::nextVec2f |
( |
| ) |
|
returns a random Vec2f that represents a point on the unit circle
float cinder::Rand::nextGaussian |
( |
| ) |
|
returns a random float via Gaussian distribution
void cinder::Rand::randomize |
( |
| ) |
|
|
static |
Resets the static random generator to a random seed based on the clock.
void cinder::Rand::randSeed |
( |
unsigned long |
seedValue | ) |
|
|
static |
Resets the static random generator to the specific seed seedValue.
static bool cinder::Rand::randBool |
( |
| ) |
|
|
static |
returns a random boolean value
static int32_t cinder::Rand::randInt |
( |
| ) |
|
|
static |
returns a random integer in the range [-2147483648,2147483647]
static uint32_t cinder::Rand::randUint |
( |
| ) |
|
|
static |
returns a random integer in the range [0,4294967296)
static int32_t cinder::Rand::randInt |
( |
int32_t |
v | ) |
|
|
static |
returns a random integer in the range [0,v)
static uint32_t cinder::Rand::randUint |
( |
uint32_t |
v | ) |
|
|
static |
returns a random integer in the range [0,v)
static int32_t cinder::Rand::randInt |
( |
int32_t |
a, |
|
|
int32_t |
b |
|
) |
| |
|
static |
returns a random integer in the range [a,b)
static float cinder::Rand::randFloat |
( |
| ) |
|
|
static |
returns a random float in the range [0.0f,1.0f)
static float cinder::Rand::randFloat |
( |
float |
v | ) |
|
|
static |
returns a random float in the range [0.0f,v)
static float cinder::Rand::randFloat |
( |
float |
a, |
|
|
float |
b |
|
) |
| |
|
static |
returns a random float in the range [a,b)
static float cinder::Rand::randPosNegFloat |
( |
float |
a, |
|
|
float |
b |
|
) |
| |
|
static |
returns a random float in the range [a,b) or the range [-b,-a)
static Vec3f cinder::Rand::randVec3f |
( |
| ) |
|
|
static |
returns a random Vec3f that represents a point on the unit sphere
static Vec2f cinder::Rand::randVec2f |
( |
| ) |
|
|
static |
returns a random Vec2f that represents a point on the unit circle
static float cinder::Rand::randGaussian |
( |
| ) |
|
|
static |
returns a random float via Gaussian distribution; refactor later
The documentation for this class was generated from the following files: