Timeline for How can I retrieve the current seed of NumPy's random number generator?
Current License: CC BY-SA 4.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 10, 2021 at 21:58 | history | edited | vestland | CC BY-SA 4.0 |
changed word. semantics...
|
| Aug 19, 2020 at 13:22 | history | edited | vestland | CC BY-SA 4.0 |
Improved formatting
|
| Aug 10, 2020 at 12:35 | comment | added | OverLordGoldDragon |
Actually I got this in exact reverse; original random states (set via np.random.seed) cannot be retrieved after generating numbers, but intermediates (current state) can.
|
|
| May 3, 2020 at 23:01 | comment | added | marsipan |
Please check the code and output. In snippet 1, seedSet should be None, and state5 should be state. The column order is the dataframes disagrees with the outputs. The text says "seed=123" has been commented out...it has not, and in any case is not used. In snippet2, the commented statement should also be removed for clarity (the statement state = np.random.get_state() should not be in the code at all).
|
|
| May 2, 2020 at 12:40 | review | Suggested edits | |||
| May 2, 2020 at 12:48 | |||||
| Apr 9, 2020 at 19:01 | comment | added | OverLordGoldDragon | TL;DR intermediate random states cannot be restored (e.g. a state after generating 5 numbers). Nice writeup. | |
| Nov 14, 2019 at 20:41 | history | edited | vestland | CC BY-SA 4.0 |
Shortened introductoon
|
| Apr 2, 2019 at 20:15 | history | edited | vestland | CC BY-SA 4.0 |
Corrected spelling and improved formatting
|
| Apr 12, 2018 at 9:40 | history | edited | vestland | CC BY-SA 3.0 |
My inital answer seemed correct at first, but did not hold for all circumstances.
|
| Apr 10, 2018 at 9:11 | history | edited | vestland | CC BY-SA 3.0 |
Added clarification at the end of the answer
|
| Apr 10, 2018 at 9:00 | history | answered | vestland | CC BY-SA 3.0 |