lundi 21 février 2022

How to generate a random distribution with probability

I tried to use Math.random() for load testing (1M requests in server per minute) and the percentage of requests that generate true is different from the percentage expected. Logic is basically if Math.random() < 0.95 to simulate a random distribution of 95% of the instances being true.




Aucun commentaire:

Enregistrer un commentaire