[fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?
Inoussa OUEDRAOGO
inoussa12 at gmail.com
Wed Dec 7 15:08:29 CET 2011
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hrandom.pas
Type: application/octet-stream
Size: 2972 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111207/0b3d9b8e/attachment.obj>
More information about the fpc-pascal
mailing list