On Sat, Dec 22, 2018 at 1:03 PM Franz Müller <bupa at 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. -- Bart