<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Hi everyone,</div><div class=""><br class=""></div><div class="">We just merged a PR about using RNG in examples.</div><div class=""><br class=""></div><div class="">From now one, please only use the new NumPy np.random.Generator API and don’t explicitly seed (either the generator or globally).</div><div class="">This is the new canonical way:</div><div class=""><br class=""></div><div class="">>>> rng = np.random.default_rng()</div><div class="">>>> sample = rng.random(...)</div><div class=""><br class=""></div><div class="">The first line is initializing the generator, BUT, it will get overridden to add a seed. So the examples are still deterministic.</div><div class=""><br class=""></div><div class="">We are doing all this to promote good practices among users.</div><div class="">It’s very important to use the new NumPy API and to use sensible seeding only when appropriate (testing for instance).</div><div class=""><br class=""></div><div class="">For more discussions, please see the PR: <a href="https://github.com/scipy/scipy/pull/13863" class="">https://github.com/scipy/scipy/pull/13863</a></div><div class=""><br class=""></div><div class="">Thanks everyone.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Pamphile</div></body></html>