Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
How can this be implemented?
Find out what is the maximum number that can be obtained using getrandmax() , and if the limit does not suit you, then generate several numbers and concatenate them (like strings, I guess).
Something like:
$number = '';
$max = getrandmax();
while (strlen($number) < $n) {
$number .= rand($max);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question