Summary of the usage of various functions under numpy.random

Because there are many functions under numpy.random, so I summarized it:
as follows: the
Insert picture description here
output result is as follows:
Insert picture description here
the figure out of the final plot: the
Insert picture description here
Insert picture description here
output result: Insert picture description here
np.random.normal(loc,scale,size): is to create a loc as the mean value , With scale as standard deviation and an array of shape as size.
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_45187794/article/details/108286749