I need a routine to put numbers on a ticket.

The numbers would be from 000 to 999. There would be 4 numbers on each
ticket and the same numbers would be repeated on the ticket stub.

Obviously the numbers can't repeat from 000 to 999.

Any suggestions?

Thanks, in advance.