Awesome post yellowaeroplane! Thanks for your input.
As you see from the thread, the GetRandom function went through quite some changes to accomodate for different situations (like generating zeros etc)
So now you've come up with another issue... well found! That is some extensive testing you've done with it there. And the suggested solution looks good too (that huge return statement was beginning to look real ugly...)
One thing though i remember reading that using the % operator with rand() doesnt yield best results because of the way the % operator shifts bits. As in contrast to the / operator which does yield best "randomified" bits.
So; can we come up with a solution that uses the / operator, and will work fine when i want to generate random binary (1s and 0s) and will pass your lottery test case...

