numpy.random.f() in Python Last Updated : 15 Jul, 2020 Comments Improve Suggest changes Like Article Like Report With the help of numpy.random.f() method, we can get the random samples of F distribution and return the random samples of numpy array by using this method. Syntax : numpy.random.f(dfnum, dfden, size=None) Return : Return the random samples as numpy array. Example #1 : In this example we can see that by using numpy.random.f() method, we are able to get the random samples of F distribution and return the random samples by using this method. Python3 # import numpy and f import numpy as np import matplotlib.pyplot as plt # Using f() method gfg = np.random.f(0.98, 15.43, 1000) count, bins, ignored = plt.hist(gfg, 30, density = True) plt.show() Output : Example #2 : Python3 # import numpy and f import numpy as np import matplotlib.pyplot as plt # Using f() method gfg = np.random.f(14.56, 31.45, 30000) gfg1 = np.random.f(gfg, 10.45, 30000) count, bins, ignored = plt.hist(gfg1, 14, density = True) plt.show() Output : Comment More infoAdvertise with us Next Article numpy.random.f() in Python J jitender_1998 Follow Improve Article Tags : Python Python-numpy Python numpy-Random Practice Tags : python Similar Reads numpy.random.gamma() in Python With the help of numpy.random.gamma() method, we can get the random samples of gamma distribution and return the random samples of numpy array by using this method. gamma distribution Syntax : numpy.random.gamma(shape, scale=1.0, size=None) Return : Return the random samples of numpy array. Example 1 min read numpy.random.choice() in Python With the help of choice() method, we can get the random samples of one dimensional array and return the random samples of numpy array. Syntax : numpy.random.choice(a, size=None, replace=True, p=None) Parameters: 1) a - 1-D array of numpy having random samples. 2) size - Output shape of random sample 1 min read numpy.random.rand() in Python This article provides an in-depth exploration of the `numpy.random.rand()` function in Python. It covers the function's syntax, and definition, and includes illustrative examples with detailed explanations for better understanding. numpy.random.rand() Function Syntax The numpy.random.rand() function 3 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.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 Like