diff options
Diffstat (limited to 'numpy/random/__init__.py')
-rw-r--r-- | numpy/random/__init__.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/numpy/random/__init__.py b/numpy/random/__init__.py new file mode 100644 index 000000000..39607f993 --- /dev/null +++ b/numpy/random/__init__.py @@ -0,0 +1,17 @@ +# To get sub-modules +from info import __doc__, __all__ +from mtrand import * + +# Some aliases: +ranf = random = sample = random_sample +__all__.extend(['ranf','random','sample']) + +def __RandomState_ctor(): + """Return a RandomState instance. + + This function exists solely to assist (un)pickling. + """ + return RandomState() + +from scipy.testing import ScipyTest +test = ScipyTest().test |