From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,62266d96f70abe13 X-Google-Attributes: gid103376,public From: mfb@mbunix.mitre.org (Michael F Brenner) Subject: Re: How do you randomise integers? Date: 1997/05/19 Message-ID: <5lqn52$kss@top.mitre.org>#1/1 X-Deja-AN: 243013306 References: <01bc6221$5c8b3100$1a8602cb@whippet> Organization: The MITRE Corporation, Bedford Mass. Newsgroups: comp.lang.ada Date: 1997-05-19T00:00:00+00:00 List-Id: You said you could do it in C++. That would make it very easy in Ada, because we could either (1) call the C++ or (2) translate the C++ into Ada. Could you post the C++ code that reads the system clock, converts it to a set of integers you have declared? Seeding the random number generator is just a matter of storing those integers into an array The ++ could be your Program Design Language for the Ada code. THen just substitute a call to the Ada clock and the Ada random number generation setter (reset). Or we could program our own random number generator and try to make it pass the stringent Bob Eachustests. Obviously you can