summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2019-02-24 18:51:00 -0800
committerEric Wieser <wieser.eric@gmail.com>2019-02-27 21:10:05 -0800
commitdac6fdcc40c5d27a36b562fc99383df4bd263fdb (patch)
tree899a054c864388b8d9f8d69ff5f218490260d81d /doc/source
parented4f296fca51e6672c23f51199a8bfc222853497 (diff)
downloadnumpy-dac6fdcc40c5d27a36b562fc99383df4bd263fdb.tar.gz
DOC: Encourage users to use the non-matlab-style random functions
In response to twitter conversations that complain that `randn` is inconsistent with `zeros`, to which the answer is "that's because randn is a wrapper to make things look like matlab".
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/user/numpy-for-matlab-users.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/source/user/numpy-for-matlab-users.rst b/doc/source/user/numpy-for-matlab-users.rst
index 16ee48c5e..e53d1ca45 100644
--- a/doc/source/user/numpy-for-matlab-users.rst
+++ b/doc/source/user/numpy-for-matlab-users.rst
@@ -436,7 +436,7 @@ Linear Algebra Equivalents
``a``
* - ``rand(3,4)``
- - ``random.rand(3,4)``
+ - ``random.rand(3,4)`` or ``random.random_sample((3, 4))``
- random 3x4 matrix
* - ``linspace(1,3,4)``