Example #1
0
double rand_norm(void)
{
    if (!mtRand.get())
        mtRand.reset(new MTRand());
    return mtRand->randExc();
}
Example #2
0
float frand(float min, float max)
{
    if (!mtRand.get())
        mtRand.reset(new MTRand());
    return mtRand->randExc(max - min) + min;
}
Example #3
0
double rand_chance(void)
{
    if (!mtRand.get())
        mtRand.reset(new MTRand());
    return mtRand->randExc(100.0);
}
Example #4
0
float rand_chance_f(void)
{
    if (!mtRand.get())
        mtRand.reset(new MTRand());
    return (float)mtRand->randExc(100.0);
}
Example #5
0
float rand_norm_f(void)
{
    if (!mtRand.get())
        mtRand.reset(new MTRand());
    return (float)mtRand->randExc();
}