Am Sa., 22. Dez. 2018, 17:38 hat Bart <bartjun...@gmail.com> geschrieben:
> On Sat, Dec 22, 2018 at 1:03 PM Franz Müller <b...@gmx.at> wrote: > > > But maybe there is an easy way to save the state of the random number > generator routine before sorting and to restore it when the sort is done? > > Save RandSeed and restore it after you're done with your calls to Random > Please note that this is not threadsafe as another thread running the same or even different code could poke around in the RNG's state as well. Regards, Sven >
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel