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