My entire life I used math.random, but I found that it is not very reliable and uniform. I just was introduced[today] to the Random.new function, but I'm not sure if it has better or worse reliability than the latter. Can anyone brief me on the contrasts and similarities of these two?
examples:
-- math.random lines
rand = math.random(1, 4)
print(rand)
-- the output would either print 1,2,3, or 4, yes?
-- Random.new lines
rand = Random.new(3) -- just a random "seed", no idea what this is for.
print(rand:NextInteger(1, 4)
-- the output would have the same[similar] results as the above example yea?
