Hi Richard,

I'll assume you'll want the five digit numbers in a random order

1) Have a look at the PPNO instruction

2) This technique will work, it might depend on whether you want to do this multiple times or just once I'll assume you have a random number generator (rng), someone will have one if you don't
a) Build a table of numbers 00001-99999
b) Use the rng to select a number from 1-99999, mark that entry as used and collect it c) Use the rng again with range 00001-99998, select the nth unused and collect it d) Repeat c and d dropping the range by one each time until you have none left

Regards,

Melvyn Maltz.

----- Original Message ----- From: "Richard Kuebbing" <[email protected]>
To: <[email protected]>
Sent: Tuesday, May 16, 2017 9:28 PM
Subject: random quest


So I need a set of 99,999 random numbers which are 5 digits and unique, i.e. no duplicates. CEERAN0 and Cobol FUNCTION RANDOM both give sets w/30+% duplicates.

I have seen website random.org.

Anyone have to ever done this thing?

Anyone have suggestions?

Richard Kuebbing

Efforts and courage are not enough without purpose and direction. - John F. Kennedy Fasten your seat belts, it's going to be a bumpy ride. - Bette Davis (as character Margo Channing) _All About Eve_1950
Furious activity is no substitute for understanding. - H. H. Williams
Our greatest danger in life is in permitting the urgent things to crowd out the important. - Charles E. Hummel
Quidquid latine dictum sit, altum videtur.



----------------------------------------- The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. The information may also constitute a legally privileged confidential communication. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you

Reply via email to