##C++##
unsigned int Rand2()
{
unsigned int r = Rand5();
while(r == 5)
r = Rand5();
return(r & 1);
}
unsigned int Rand7()
{
return((Rand2() << 2) | (Rand2() << 1) | Rand2());
}
##C++##
unsigned int Rand2()
{
unsigned int r = Rand5();
while(r == 5)
r = Rand5();
return(r & 1);
}
unsigned int Rand7()
{
return((Rand2() << 2) | (Rand2() << 1) | Rand2());
}