Hi, What's the equivalence of this javascript rand in php? Math.round(Math.random()*999999); Code (markup): Thanks
$number = round(rand(1, 999999)); PHP: You could also use ceil() [to always round up] and floor() [to always round down].