programming-examples/php/Arrays/PHP script to generate unique random numbers within a range.php
2019-11-15 12:59:38 +01:00

9 lines
102 B
PHP

<?php
$n=range(11,20);
shuffle($n);
for ($x=0; $x< 10; $x++)
{
echo $n[$x].' ';
}
echo "\n"
?>