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