scipy-lectures / scientific-python-lectures

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

is RNG note about Mersenne Twister correct? #803

Open paciorek opened 1 month ago

paciorek commented 1 month 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 1 month ago

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