예제 #1
0
uint64
fgRandUint64()
{
    uint64  hi = rng.genInt(),
            lo = rng.genInt();
    return (lo + (hi << 32));
}
예제 #2
0
uint
fgRandUint(uint size)
{
    return uint(rng.genInt()) % size;
}
예제 #3
0
bool
randFlip()
{
    return (rng.genInt() > (numeric_limits<uint>::max()/2));
}