On 2017-05-16, at 14:35, Mark Boonie wrote:

> Perhaps there's something about the question I don't understand, but if 
> you want 99,999 unique 5-digit numbers then you'll end up with the numbers 
> 00000 to 99999.  Or do you just want the *order* of the numbers to be 
> random?
>  
There are 100,000 5-digit numbers, so one will be left out.

Start with an array of 100,000 5-digit numbers.  Select one at
random.  Move the last one into the position selected.  Select
one of the remaining 99,999 numbers at random.  Move the last
one into the position selected. ...

-- gil

Reply via email to