I am using the math.random function in my game to implement a random decision.
local numHowManyBalls = allBallsGroup.numChildren
local numRandomIndex = math.random(1, numHowManyBalls)
I see there is another function called math.randomseed and I would like to know what this is for and hence if I should be using it and how?
I have other functions in the game that also call the random function.
Thanks
Paul [import]uid: 7863 topic_id: 7217 reply_id: 307217[/import]