1. Re: Random Number Generators in Euphoria
- Posted by Falkon 1313 <Falkon1313 at AOL.COM>
Feb 11, 2000
-
Last edited Feb 12, 2000
From: Joel Crook
>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.
Hmm... I don't know much about that. I've written multiple-dice-rolling
functions using rand(), and they give a proper-looking bell curve, so that's
always seemed random enough for me. How do you decide how random
is random enough? (on a philosophical sidenote, if you know how random
something is, does that make it less random?)
> b) a magic bullet that makes Euphoria do 64 bit logical operations or
an
>include file that does so.
Well, if you can assume that it'll be used on Pentium MMX-equipped PCs,
maybe you could poke and call the machine code for PAND, POR, and
PXOR... (the MMX 64-bit bitwise instructions). Don't know if that requires
any special work, but I can try it. If it works it'd be quicker than
sequencizing them.