Hi!
I have an array from 1 to 150 [1 2 3 …]
and the corresponding probability [0.001 0.003 0.002 …]
Now I'd like to pick a random number from the first array with taking into account the respective probability.
Has anyone an idea how to proceed?
Thanks!
Best Answer