How to reproduce random sequence?

Hi.

In my application I need to reproduce the same random sequence providing the initial number. I used

math.randomseed( someNumber )

, and it seemed to work well. But I noticed that it generates different sequences in simulator (windows) and mobile devices (android).

Could anybody clarify the mechanism of the random generator used? How can I make sure to generate absolutely the same random sequence on all devices, both android and ios?

Thanks in advance.

Have you read through these yet:

https://coronalabs.com/blog/2015/12/22/tutorial-understanding-random-numbers-in-corona/

https://coronalabs.com/blog/2014/03/11/tutorial-advanced-random-numbers/

Each environment (windows simulator, os x simulator, Android devices, iOS, …) use different libraries as the base for their math.random() function.  

If you want a deterministic random sequence (repeats across all target environments given the same seed), you’ll need to use a standalone random library.  There are many available, among them:

Just do a search for “Lua Random Deterministic Library” and you should find more.

Thanks a lot for your answers. Now I think I should opt for a standalone algorithm.

Have you read through these yet:

https://coronalabs.com/blog/2015/12/22/tutorial-understanding-random-numbers-in-corona/

https://coronalabs.com/blog/2014/03/11/tutorial-advanced-random-numbers/

Each environment (windows simulator, os x simulator, Android devices, iOS, …) use different libraries as the base for their math.random() function.  

If you want a deterministic random sequence (repeats across all target environments given the same seed), you’ll need to use a standalone random library.  There are many available, among them:

Just do a search for “Lua Random Deterministic Library” and you should find more.

Thanks a lot for your answers. Now I think I should opt for a standalone algorithm.