Random numbers the non-legacy way: Revision history

From Master of Neuroscience Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

17 October 2025

  • curprev 16:4516:45, 17 October 2025 Davrot talk contribs 9,973 bytes −11 No edit summary Tag: Visual edit
  • curprev 12:5812:58, 17 October 2025 Davrot talk contribs 9,984 bytes +9,984 Created page with "== Goal == If you don’t see something like '''np.random.default_rng()''' in your code then you are probably using the old [https://numpy.org/doc/stable/reference/random/legacy.html#legacy-random-generation Legacy Random Generation]. '''Don’t use the [https://numpy.org/doc/stable/reference/random/legacy.html legacy] methods''' for new source code!!! '''numpy.random.random() == old == bad == don’t use'''​ Do it like this:<syntaxhighlight lang="python">import num..." Tag: Visual edit