We try make same random levels in our game. So, we use randomseed (Lua) with same seed number. We tried more iOS devices and everything is OK. We see same numbers, same levels for each seed. But if we tried same randomseed on Android devices, it is not same like on iOS devices.
math.randomseed( 6000001 )
Is there any way to have same sequence numbers on both platforms? Thanks a lot for help.
You're out of luck here as Solar2D appears to be using Lua 5.1, which does not make any portability guarantees for it's random generator.
You have to use/implement your own pseudo-random generator if you want platform-independent seeded random number sequences. There are some packages on Luarocks that implement such RNGs, such as lrandom. If you need a pure-Lua random number generator, you can use randomlua.