Go to the source code of this file.
Classes | |
class | cinder::Rand |
Namespaces | |
namespace | cinder |
Functions | |
void | cinder::randSeed (uint32_t seedValue) |
Resets the static random generator to the specific seed seedValue. | |
bool | cinder::randBool () |
returns a random boolean value | |
int32_t | cinder::randInt () |
returns a random integer in the range [0,2147483647] | |
int32_t | cinder::randInt (int32_t v) |
returns a random integer in the range [0,v) | |
int32_t | cinder::randInt (int32_t a, int32_t b) |
returns a random integer in the range [a,b) | |
float | cinder::randFloat () |
returns a random float in the range [0.0f,1.0f] | |
float | cinder::randFloat (float v) |
returns a random float in the range [0.0f,v] | |
float | cinder::randFloat (float a, float b) |
returns a random float in the range [a,b] | |
float | cinder::randPosNegFloat (float a, float b) |
returns a random float in the range [a,b] or the range [-b,-a] | |
Vec3f | cinder::randVec3f () |
returns a random Vec3f that represents a point on the unit sphere | |
Vec2f | cinder::randVec2f () |
returns a random Vec2f that represents a point on the unit circle | |
float | cinder::randGaussian () |
returns a random float via Gaussian distribution |