[Numpy-discussion] numpy C-API :: use numpy's random number generator in a ufunc

mattip matti.picus at gmail.com
Fri Oct 18 07:43:57 EDT 2019

Hi Daniel. Usually one would use python, something like `rng =
np.random.Generator(np.random.PCG64(seed)); a = rng.uniform(10, size=(3,
4))` to get a 3 by 4 array of uniform random numbers in the range of 0 to
10. Is there a reason you need to do this from C?


Sent from: http://numpy-discussion.10968.n7.nabble.com/

More information about the NumPy-Discussion mailing list