I’m seeing a very strange problem that is only occurring on WP and I wanted to check to see if anyone has encountered and solved it. Basically, I can’t get any math.random variables to actually be randomized. Using the simple code below:
local rndTest = math.random(4,100) print(" rndTest = "..rndTest)
and run through Visual Studio Community 2013, I get a value of 4, every time. On Android and iOS devices, I random values in the 4 to 100 range; on WP, just a value of 4.
This has been tested using my own projects, and the Hello World code delivered by Corona. Is anyone else seeing this? Is this something that I caused inadvertently? Does anyone know which bit I need to flip to send it back to random values?
I wanted to wait to file a bug report before I checked with the forum first. All suggestions welcome!