<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">Am Sa., 22. Dez. 2018, 17:38 hat Bart <<a href="mailto:bartjunk64@gmail.com">bartjunk64@gmail.com</a>> geschrieben:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, Dec 22, 2018 at 1:03 PM Franz Müller <<a href="mailto:bupa@gmx.at" target="_blank" rel="noreferrer">bupa@gmx.at</a>> wrote:<br>
<br>
> 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?<br>
<br>
Save RandSeed and restore it after you're done with your calls to Random<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">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. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>