programming-examples/php/Arrays/PHP script to generate unique random numbers within a range.php

9 lines
102 B
PHP
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
<?php
$n=range(11,20);
shuffle($n);
for ($x=0; $x< 10; $x++)
{
echo $n[$x].' ';
}
echo "\n"
?>