Re: Random Number Generators in C

new topic     » goto parent     » topic index » view thread      » older message » newer message

Mike Sabal wrote:

>Perhaps you can use two atom/sequence pairs to get the 64-bits you need.  Have
>a high and low portion, and modify the shift functions to accommodate shifting
>over two sequences.
>
>HTH,
>Michael J. Sabal
>
>>>> Joel Crook <joel at MAIL.K-A.COM> 02/10/00 02:06PM >>>
>
>So what I am looking for is one of the following:
>                a) a documented RNG with a long period that passes at least in
>                part
>Marsaglia's Diehard Tests
>                written in Euphoria.
>                b) a magic bullet that makes Euphoria do 64 bit logical
>                operations or an
>include file that does so.
>                c) failing these, some help coding a dll in C that will contain
>                the 8
>RNGs noted above.
>
>I won't post the C code for the 8 RNGs unless the List thinks it's a good idea.

If you were able to get Mr. Masaglia's 8 RNGs, then you can download his
Diehard.zip that contains his RNG tester. It does run under windows in a
DOS window. Then, you can create a set of random numbers to from
Euphoria's RNG and feed them into it and we will all know whether RDS's
random function creates reasonably random sequences. If it does, you
won't need to convert any of that C code.

Everett L.(Rett) Williams
rett at gvtc.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu