scipy-lectures / scientific-python-lectures

Tutorial material on the scientific Python ecosystem
https://lectures.scientific-python.org
Other
3.1k stars 1.19k forks source link

is RNG note about Mersenne Twister correct? #803

Open paciorek opened 2 hours ago

paciorek commented 2 hours ago

Section 1.3.1 seems to incorrectly indicate that the default PRNG is Mersenne not PCG64.

np.random: random numbers (Mersenne Twister PRNG):

This conflicts with the actual behavior:

>>> import numpy as np
>>> rng = np.random.default_rng(27446968)
>>> rng
Generator(PCG64) at 0x7FD121D4DD20
stefanv commented 2 hours ago

Thanks, Chris! Looks like that slipped through when we migrated the text to the new RNG pattern.