[SciPy-User] Use numpy.random.RandomState with scipy.stats

Ahmed Fasih wuzzyview at gmail.com
Tue May 7 09:57:04 EDT 2013


I really like the random variable objects in scipy.stats, e.g.,
scipy.stats.norm, which let me store the parameters of a distribution and
sample from it. I see that, to get repeatable results, scipy.stats
documentation suggests setting the default global Numpy random seed via
numpy.random.seed. The rest of my application uses individual random
streams generated from numpy.random.RandomState, since I may have multiple
streams. Is there any way to get my scipy.stats random variable objects to
use a user-supplied RandomState object instead of the default numpy stream?
If not, would this qualify as a (minor) bug?
Thanks,
Ahmed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20130507/11437b62/attachment.html>


More information about the SciPy-User mailing list