hi there
this is my code
<?
$userinput = '1000';
$i = '1';
echo $random . "<br>";
while ($i < 10) {
$random = rand(1,$userinput);
echo $random . "<br>";
$i++;
}
?>
sometimes when running this code, it duplicates the random number, how would I be able to not duplicate any numbers in the rand command
hope you understand me ok
thanks
lozza