[fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

John Lee johnelee0 at gmail.com
Wed Dec 7 15:30:34 CET 2011


How does it compare re 'randomness' cf current fpc version? The wikipedia
reference doesn't make this clear. Or the original fpc/delphi versions?
Jonas?
John

On 7 December 2011 14:08, Inoussa OUEDRAOGO <inoussa12 at gmail.com> wrote:

> 2011/12/7 Peter <peter at pblackman.plus.com>:
> > Graeme,
> >
> > I would recommend using Marsaglia's XORShift.
> > Blisteringly fast, high quality statistically, and very easy to
> implement.
> >
> > http://en.wikipedia.org/wiki/Xorshift
>
> For those who want to test it here is an Object Pascal implementation.
>
> --
> Inoussa O.
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111207/5b8b7ecc/attachment.html>


More information about the fpc-pascal mailing list