Confronting The Reality Of US Broadband Performance
-
[image: broadband]*Editor's note:* *Richard Bennett is a Senior Fellow with
the Information Technology and Innovation Foundation and co-author of
ITIF’s 20...
12 minutes ago
Use rand04() to generate binary stream. Produce 0 if rand04() returns 0 or 1, produce 1 if random04() returns 2 or 3, skip if rand04() returns 4.
ReplyDeleteSplit stream to 3-bit units, these are binary encoded random values in range 0..7
Take two samples A and B and form C=5*A+B which is a random number from 0 to 24 inclusive.
ReplyDeleteIf C<24, return C/3 as the answer. Else repeat the generation and test until it does succeed.