So I want to randomly pick different values from a table but with some rarer than others, how do I do this?
local values = {"value1","value2","value3"}
local selectedvalue = math.random(1,#values)
--this works, but how do I do it if vaule 1 has twice as much change to be selected than value 2 and 3? This just gives them all the same chance...

1 comment
Rarities*