I have been working on my first project in Corona, it is a procedural cave generator that has several nodes that crawl around randomly to build a cave.
When testing in Corona SDK it works great, every time I load a new map or restart the program it shows a brand new random map.
However… Once I build my system for IOS and put it on my iphone the maps come up in a sequence that is nearly 100% predictable. The maps seem to be cached into memory or something.
I have tried restarting the app, cold booting the phone, and republishing the app then reinstalling it.
But every time I start the app it starts with the same map layout, then the next screen is a different map than the first screen, but the second map is always the same map… and the third and the fourth and so on.
So the maps ARE generated randomly, but it seems like the random numbers are a defined sequence on the iphone which is resulting in a set design for the maps in my game.
Is this a bug? Is there any way to make random numbers differently? Because it works 100% of the time everywhere except on the actual device. [import]uid: 74542 topic_id: 12950 reply_id: 312950[/import]