Closed barrierye closed 1 year ago
The purpose of seeding the random generator is to guarantee that you can recreate the same randomness at a later time. However, NumCpp
and NumPy
use different random generators so using the same seed between them will NOT result in the same random numbers produced.
Describe the bug I tried to migrate a piece of code from numpy to NumCpp, but the random::seed behavior of NumCpp is inconsistent with that of numpy.
To Reproduce Here is my Python code:
The output of this code is:
And here is my C++ code:
The output is:
I want to know how to keep the behavior of random::seed in NumCpp consistent with numpy?