generate several numbers (6 digit) not repetitive
mt_rand(100000, 999999) would generate a pseudo-random 6 digit positive integer.
You could then do something along the lines of:
$limit = 10; //number of numbers
$rands = array();
for ($i = 0; $i < $limit; $i++) {
if (!in_array($rnum = mt_rand(100000, 999999), $rands)) {
$rands[] = $rnum;
} else {
$i--;
}
}
print_r($rands);
between a esceficied rank
Never heard of the word "esceficied", a dictionary search does not reveal anything either.
What do you mean by "esceficied rank"?