Posted by phpuser32423 on 10/14/05 00:37
Your question is contradictory mate you couldnt make a random number
that began with specified non random value. You could however make a
string variable that was comprised of both a constant value of '1001.'
and an entirely random number using a random number generating
function. Like this
$string .= '1001';
$string .= 'your random number';
echo $string;
You would need to ask someone else about generating a random number in
PHP as i've never had to do it, i just stick a few incrementing numbers
together pulled from a database if i want to create a unique value like
for a transaction ID or something.
[Back to original message]
|