xidulu commented on a change in pull request #15909: [numpy] random.rand
URL: https://github.com/apache/incubator-mxnet/pull/15909#discussion_r314559195
##########
File path: python/mxnet/symbol/numpy/random.py
##########
@@ -49,6 +49,35 @@ def _random_helper(random, sampler, params, shape, dtype,
ctx, out, kwargs):
"but got %s." % type(params[0]))
+def rand(*size, **kwargs):
+ r"""Random values in a given shape.
+
+ Create an array of the given shape and populate it with random
+ samples from a uniform distribution over [0, 1).
+ Parameters
+ ----------
+ d0, d1, ..., dn : int, optional
+ The dimensions of the returned array, should be all positive.
+ If no argument is given a single Python float is returned.
+ Returns
+ -------
+ out : ndarray
+ A ``(d0, d1, ..., dn)``-shaped array of floating-point samples from
+ the standard normal distribution, or a single such float if
Review comment:
Same as above.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services