mercredi 13 novembre 2019

How to Make a Uniform Random Integer Generator from a Random Boolean Generator?

I have a hardware-based boolean generator that generates either 1 or 0 uniformly. Can I use it to make a uniform 8-bit integer generator? If I use the collected booleans to create the binary string for the 8-bit integer, then 85 (01010101) and -86 (10101010) would have higher chances to be generated than the other numbers. What is the proper way to do this then?




Aucun commentaire:

Enregistrer un commentaire