Difference numpy.random.randn () and numpy.random.rand () of

numpy has some common functions used to generate the random number, randn () and rand () which belongs to. 

numpy.random.randn (d0, d1, ..., dn) is to return one or more sample values from the standard normal distribution. numpy.random.rand (d0, d1, ..., dn) of a random sample located between [0, 1). 
 

numpy.random.randn (d0, d1, ..., dn) is to return one or more sample values from the standard normal distribution. numpy.random.rand (d0, d1, ..., dn) of a random sample located between [0, 1). 
 

Guess you like

Origin www.cnblogs.com/conpi/p/11797172.html