Is there a distribution version of "random int in range"?
By - FuryOfficial
I guess you could do a map table. One side the values, the other side the amount of occurrences. Then randomize a value between 0 and the sum of all occurrences and then go through the map until you reach the value randomized.
Not sure if this is the best way though.
I think you could use a curve asset with "sample from curve" or something and round the output
I just started to learn UE one day ago, so i have no idea about the possibilities of UE.
The simplest thing that comes into my mind right now is to fill in an array with the desired values according to their chance probability and use random function to pick a value:
Array[1,1,2,2,2,2,2,3,3…..3,3,3] and then use random index 1..20 to pick a value.
Not that smart but simple and working.