Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14185

How can I get the seed of a numpy `Generator`?

$
0
0

I am using rng = np.random.default_rng(seed=None) for testing purposes following documentation.

My program is a scientific code, so it is good to have some random values to test it, but if I found a problem with the code's result, I would like to get the seed back and try again to find the problem. ¿Is there any way to do that? Things like this question does not seem to work with a Generator.

Of course I can always try a set of predefined seeds, but that is not what I want.

Thanks!


Viewing all articles
Browse latest Browse all 14185

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>