Re: 32-bit random numbers

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

Andy Serpa wrote:

> Juergen Luethje wrote:
>>
>> Hi all,
>>
>> for Euphoria's function rand(x), x may only be from 1 to the largest
>> positive value of type integer (#3FFFFFFF).
>>
>> I would like to have a function, that can take any unsigned 32-bit integer
>> -- i.e. in the interval [0,#FFFFFFFF] -- as argument. Any ideas?
>
> I believe the Mersenne Twister library in the archive generates 32-bit
> integers...

Yes, it does. Thanks, Andy! The archive -- and this mailing list -- are
really "treasures of knowledge". smile

Regards,
   Juergen

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

Search



Quick Links

User menu

Not signed in.

Misc Menu