//Leonardo_Giori(Bozo){ // gambiarra.com.br //} function rand2($min=0, $max=0, $count=1){ $randmax = getrandmax(); $max = ($max<=$min) ? $randmax : $max; for($n=$min; $n<=$max; $n++){ $nums[] = $n; } shuffle($nums); for($n=0; $n<$count; $n++){ $num[] = $nums[$n]; } return $num; }