Re: More on Random Number Generators in Euphoria

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

On Mon, 14 Feb 2000, Brian Broker wrote:

> On Mon, 14 Feb 2000 13:22:01 -0500, Everett Williams wrote:
>
> >Has anybody run the Euphoria RNG through the Diehard test?
>
> I decided to go ahead and look into this.  The Diehard test is looking for
> 32-bit random numbers...  The problem with Euphoria's 'rand' function is
> that it will only produce random numbers up to 0x3FFFFFF (instead of
> 0xFFFFFFFF).  What would be an acceptable method to obtain the required
> range?  Is it acceptable to generate two 16-bit random numbers and
> concatenate them?  Does anybody have any other valid suggestions?  I could
> try all suggested methods and see what works best...
>
> -- Brian
>

        It would be acceptable to concatenate two 16 bit integers provided
you apply the results of the test only to 'the concatenation of two 16 bit
integers as generated by rand()'. =)

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

Search



Quick Links

User menu

Not signed in.

Misc Menu