dimanche 21 mars 2021

How can I generate random probability values using C programming language?

If I do rand()/RAND_MAX, will it give me a random probability value?

If I do so, is it going to be that 50% (on average) of the values will be more than 0.5?




Aucun commentaire:

Enregistrer un commentaire