vendredi 5 février 2016

Random but most likely 1 float

I want to randomize a float that has 95% chans to be about 1 and 0.01% chans to be 0.1 or 1.9 and never becomes 0 or 2. Is this possible by using Random nextFloat() several times for example?A visual illustration of the probability




Aucun commentaire:

Enregistrer un commentaire