Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Random function — Gideros Forum

Random function

MysiaGamesMysiaGames Member
edited March 2013 in General questions
After use math.random() lua function, i take notice that result are repetitive or not cause a real random output. Consecutive randoms functions generate the same number 3 or 4 times, and that type of output is not possible. I use randomseed( os.timer() ), but the problem persist. This problem It's noticeable on iOS version. Maybe some of the problem could be due of os.timer() function returning seconds and calculations are so fast.

Is there any way to get a real random output?

Comments

Sign In or Register to comment.