Correct way to get a number from 0-9 from a random byte?
If I have a good random number generator that gives me a byte of data at a time, and I want to extract a random decimal digit of 0 to 9 from that byte stream, what is the correct way to do that?
At first I naively assumed th… Continue reading Correct way to get a number from 0-9 from a random byte?