dimanche 27 mars 2016

Generating a random number from 0 to 9 based on a series of coin flips

What method can I use to minimize the amount of coin flips needed to generate a uniformly distributed number from 0 to 9?

I've done some research, but I haven't been able to figure out how to adapt it to this specific problem:

Expand a random range from 1–5 to 1–7

http://ift.tt/1XWucbf

http://ift.tt/1Un4Y7Y




Aucun commentaire:

Enregistrer un commentaire