I know that the Random class has
NextInteger()
but in every other language I've learned there has been a method to generate a number in a range of
0 - 1
for example maybe it will generate 0.4 or 0.2
Is there a method or function to do this in lua
Any help is appreciated thank you :)
The :NextNumber(lo, hi)
method of the Random class produces a number in the half-open range [lo, hi)
, defaulting to the range [0, 1)
.