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

Virgo Pärna virgo.parna at mail.ee
Sat Dec 10 09:56:42 CET 2011


On Fri, 9 Dec 2011 13:28:49 +0100 (CET), Dimitri Smits <smitco at telenet.be> wrote:
>
> Randomize() is supposed to be called only once to seed the generator with an initial value. 
>

    I do know that:) I made that mistake long time ago.  What I thought was, that constantly 
setting RandSeed is somewhat like constantly calling Randomize. In the example code randseed 
was dependant of randomize output - which might or might not be as awful as randomize. And 
the graphical output was just really good illustration, why it was bad.

-- 
Virgo Pärna 
virgo.parna at mail.ee




More information about the fpc-pascal mailing list