I have a script that picks 6 random number, but sometimes it picks the same one twice or three times etc. How can I pervent this?
$Number1 = rand(1,49) ;
$Number2 = rand(1,49) ;
$Number3 = rand(1,49) ;
$Number4 = rand(1,49) ;
$Number5 = rand(1,49) ;
$Number6 = rand(1,49) ;
How would I modify that so if $number1 picks a number no of the others pick it and same for the rest? Thanks