Hi, What's the equivalent to this javascript in php? Math.round(Math.random()*999999) Code (markup): Thanks
Yeh I know how they both work in php, I'm just not sure if the rand() gives the same sort of Math.Random so the outcome number would be different in decimal places?
Yes, but I'm not sure if the outcome integer from the sequence would be the same length of digits in both occasions.
Random means random. You cannot expect the same integer will be generated from both the scripts at the same time.
I'm not, I just wanted the same digit integer, if I new how to do that in javascript then it would be simple, I know php you can use rand(1,100)
Math.round(Math.random()*999999) would be rand(0,999999) this generates a random number between 0 and 999999