Open In App

numpy.random.standard_gamma() in Python

Last Updated : 18 Aug, 2020
Summarize
Comments
Improve
Suggest changes
Share
Like Article
Like
Report

With the help of numpy.random.standard_gamma() method, we can get the random samples from standard gamma distribution and return the random samples by using this method.

Standard gamma distribution

Syntax : numpy.random.standard_gamma(shape, size=None)

Return : Return the random samples as numpy array.

Example #1 :

In this example we can see that by using numpy.random.standard_gamma() method, we are able to get the random samples from standard gamma distribution and return the random samples.

Output :

Example #2 :

Output :


Next Article
Practice Tags :

Similar Reads