Create an Excel spreadsheet. In A1 put 1. In A2 put 2. Drag the two cells
down to row 99999. You now have all the numbers from 1 to 99999 with no
duplicates.

Put =RAND() in B1. Drag it down to row 99999. You now have 99,999
pseudo-random numbers in column B. Sort the spreadsheet on column B. Column
A is now the answer to your requirement.

If you need help cutting and pasting it into some particular format let me
know. If you are not comfortable with Excel let me know and I will just do
it for you and send you the result.

Charles


-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]]
On Behalf Of Richard Kuebbing
Sent: Tuesday, May 16, 2017 1:28 PM
To: [email protected]
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