title: How can I retrieve the current seed of NumPy's random number generator?
body: <p>The following imports NumPy and sets the seed.</p>
  
  <pre><code>import numpy as np
  np.random.seed(42)
  </code></pre>
  
  <p>However, I'm not interested in setting the seed but more in reading it. <code>random.get_state()</code> does not seem to contain the seed. The <a href="http://docs.scipy.org/doc/numpy/reference/routines.random.html">documentation</a> doesn't show an obvious answer.</p>
  
  <p>How do I retrieve the current seed used by <code>numpy.random</code>, assuming I did not set it manually?</p>
  
  <p>I want to use the current seed to carry over for the next iteration of a process.</p>