Skip to content
masterclass Buddy

NumPy · Class

np.random.Generator

Draw samples from a standard Gamma distribution using a shape parameter and scale 1. The result can be one value or an array, with float32 or float64 output.

Last updated

Syntax

random.Generator.standard_gamma(shape, size=None, dtype=np.float64, out=None)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • numpy.random.default_rng
  • numpy.random.Generator
  • numpy.random.Generator.integers
  • SeedSequence

Source: numpy.random.Generator.standard_gamma — NumPy v2.2 Manual. Checked 2026-11-03.