kito2
www.masteria.net
Hey everyone,
Today was making a few test and noticed that math.random(0,any_number) will ALWAYS throw the same first random number since the seed which feeds the generator is constant.
A good way to solve this is:
Hope this help someone.
Today was making a few test and noticed that math.random(0,any_number) will ALWAYS throw the same first random number since the seed which feeds the generator is constant.
A good way to solve this is:
Code:
math.randomseed(os.time())
Hope this help someone.