I haven't played around with random numbers in PHP much before and I am trying to create a random number that has 12 digits (an order number for a client)
At the moment i have something like this:
$mynum = ceil(rand(100000000000, 999999999999);
Thinking that this should generate a number from 100000000000 - 999999999999 it doesn't. It sometimes comes up with negative numbers like -5786142...?
Am I using this code in an incorrect way?
Thanks in advance.