[ Charset ISO-8859-1 unsupported, converting... ] > On 31/05/2008, Vinzent H?fler <[EMAIL PROTECTED]> wrote: > > > > > > Note that random() will always return the same sequence if you don't call > > randomize() once in the program. > > > > > > > Yes. But don't make the mistake to call it more than once. > > Why can't FPC automatically call randomize() in the RTL. Put it in > some initialization section. That way, at application startup, > randomize() is already called and only Random() needs to be used?
Then the whole random system is linked in, even when not used. Also when you would want to set a different randseed, you'd call it twice (though I can't imagine that being such a problem nowadays) _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel