mardi 17 février 2015

Getting randoms with probability one third

Having 1-bit random generator (which gives one or zero), create a function which will return 0, 1 or 2 with EQUAL probability.


Aucun commentaire:

Enregistrer un commentaire