Random Generators Numpy

What is the difference between numpy.random.random and numpy.random.rand ??
Both of them output an array of the given shape and populate it with random samples from a uniform distribution over [0, 1) .
The only difference I could figure out was how the arguments are handled . In numpy.random.random(), the argument is a single tuple whereas in latter , array dimensions are given as separate arguments.

hey @gautam75 ,
Yeah you are right there isn’t any difference.
If you check these links to there documentations
https://docs.scipy.org/doc/numpy-1.15.0/reference/generated/numpy.random.random.html
https://numpy.org/doc/stable/reference/random/generated/numpy.random.rand.html

Then you will find that rand is function which indeed uses random function.
rand function was made to be used mainly for matlab , hence it was also included in python api.

So you can use any one , there is no such restriction.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.