title: Should I use `random.seed` or `numpy.random.seed` to control random number generation in `scikit-learn`?
body: <p>I'm using scikit-learn and numpy and I want to set the global seed so that my work is reproducible.</p>
  <p>Should I use <code>numpy.random.seed</code> or <code>random.seed</code>?</p>
  <p>From the link in the comments, I understand that they are different, and that the numpy version is not thread-safe. I want to know specifically which one to use to create IPython notebooks for data analysis. Some of the algorithms from scikit-learn involve generating random numbers, and I want to be sure that the notebook shows the same results on every run.</p>