numpy.random.rayleigh() in python Last Updated : 18 Aug, 2020 Comments Improve Suggest changes Like Article Like Report With the help of numpy.random.rayleigh() method, we can get the random samples from Rayleigh distribution and return the random samples. Rayleigh distribution function Syntax : numpy.random.rayleigh(scale=1.0, size=None) Return : Return the random samples as numpy array. Example #1 : In this example we can see that by using numpy.random.rayleigh() method, we are able to get the rayleigh distribution and return the random samples. Python3 # import numpy import numpy as np import matplotlib.pyplot as plt # Using rayleigh() method gfg = np.random.rayleigh(3.4, 50000) plt.figure() plt.hist(gfg, bins = 50, density = True) plt.show() Output : Example #2 : Python3 # import numpy import numpy as np import matplotlib.pyplot as plt # Using rayleigh() method gfg = np.random.rayleigh(2 * np.sqrt(np.pi), 100000) plt.figure() plt.hist(gfg, bins = 50, density = True) plt.show() Output : Comment More infoAdvertise with us Next Article numpy.random.rayleigh() in python J jitender_1998 Follow Improve Article Tags : Python Python-numpy Python numpy-Random Practice Tags : python Similar Reads numpy.random.wald() in Python With the help of numpy.random.wald() method, we can get the random samples from Wald or Inverse Gaussian distribution and return the random samples as numpy array by using this method. Inverse Gaussian distribution Syntax : numpy.random.wald(mean, scale, size=None) Return : Return the random samples 1 min read numpy.random.zipf() in Python With the help of numpy.random.zipf() method, we can get the random samples from zipf distribution and return the random samples as numpy array by using this method. Zipf distribution Syntax : numpy.random.zipf(a, size=None) Return : Return the random samples as numpy array. Example #1 : In this exam 1 min read numpy.random.shuffle() in python With the help of numpy.random.shuffle() method, we can get the random positioning of different integer values in the numpy array or we can say that all the values in an array will be shuffled randomly. Syntax : numpy.random.shuffle(x) Return : Return the reshuffled numpy array. Example #1 : In this 1 min read numpy.random.weibull() in Python With the help of numpy.random.weibull() method, we can get the random samples from weibull distribution and return the random samples as numpy array by using this method. Weibull Distribution Syntax : numpy.random.weibull(a, size=None) Return : Return the random samples as numpy array. Example #1 : 1 min read numpy.random.triangular() in Python With the help of numpy.random.triangular() method, we can get the random samples from triangular distribution from interval [left, right] and return the random samples by using this method. Syntax : numpy.random.triangular(left, mode, right, size=None) Parameters : 1) left - lower limit of the trian 1 min read Like