How would I find where a number lands? For example, I have two number ranges, 0-0.20 and 0.21-0.40. How would I find out if a random number lands in between one of those? If a 0.348 got picked, how would I code it to find the right category?
You'd use an if statement for that. You simpfuly check if the value is Bigger then NumberA, and smaller then NumberB.
if ChosenValue >= 0 and ChosenValue <= 0.2 then --stuff end if ChosenValue > 0.2 and ChosenValue <= 0.4 then --stuff end