diff options
author | Chris Jordan-Squire <cjordan1@uw.edu> | 2011-09-02 12:09:48 -0500 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-12-17 09:03:51 -0700 |
commit | 67f24e8f2e12d9f5b8510ffd0769b13f18f5636a (patch) | |
tree | 63a4240e8a3cb2e9efac7283669522e5e992fb69 /numpy/random/__init__.py | |
parent | 8b6c850cf3e6ec664705e9823014e59edc1a26e7 (diff) | |
download | numpy-67f24e8f2e12d9f5b8510ffd0769b13f18f5636a.tar.gz |
FIX: Changed named to choice, reverted other changes.
Diffstat (limited to 'numpy/random/__init__.py')
-rw-r--r-- | numpy/random/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/numpy/random/__init__.py b/numpy/random/__init__.py index 24ce0dd5d..73b5fdabc 100644 --- a/numpy/random/__init__.py +++ b/numpy/random/__init__.py @@ -10,7 +10,10 @@ random Uniformly distributed values of a given shape. bytes Uniformly distributed random bytes. random_integers Uniformly distributed integers in a given range. random_sample Uniformly distributed floats in a given range. -sample Generate a weighted random sample from a given array-like +random Alias for random_sample +ranf Alias for random_sample +sample Alias for random_sample +choice Generate a weighted random sample from a given array-like permutation Randomly permute a sequence / generate a random sequence. shuffle Randomly permute a sequence in place. seed Seed the random number generator. @@ -88,6 +91,8 @@ 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. |