mardi 3 janvier 2017

Generate floating point random number with E=0

uniform_real_distribution does not include the right end. This means that it is not possible right a way to generate random numbers with E=0. How can I create a uniform_real_distribution with either an open interval, or a closed interval, not half-open?

One could argue that the bias towards negative values does not matter, because the difference is small, but still, it is not fully correct.




Aucun commentaire:

Enregistrer un commentaire