I use the following 6 times in my code to generate different numbers to load 6 random images:
local r = math.random ( 1, 5 )
… which works find in the simulator, but when I try it on the iPad it gives me the same numbers each time.
Is this normal? Is math.random() not entirely random on the device. Is there another method I should be using to choose a random number?
Many thanks!
t. [import]uid: 90222 topic_id: 15305 reply_id: 315305[/import]