I've a matrix with two columns. The first column is the number I want to get and the second column is the probability that number has to be chosen (0 to 1).
I'm trying to make a function that returns one of the values of the first column. And the probability of each value of the first column to be chosen is given in the second column (0 -> less chance; 1 -> more chance).
234,6591 0,4028416,1825 0,7144433,2481 0,7436566,2786 0,9720472,4878 0,8110582,1153 0,9992545,5523 0,9364565,2468 0,9702
Does anyone know how to do this?
Best Answer