cunumeric.random.gumbel#

cunumeric.random.gumbel(loc=0.0, scale=1.0, size=None)#

Draw samples from a Gumbel distribution.

Draw samples from a Gumbel distribution with specified location and scale.

Parameters:
  • loc (float, optional) – The location of the mode of the distribution. Default is 0.

  • scale (float, optional) – The scale parameter of the distribution. Default is 1. Must be non-negative.

  • size (int or tuple of ints, optional) – Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. If size is None (default), a single value is returned.

Returns:

out – Drawn samples from the parameterized Gumbel distribution.

Return type:

ndarray or scalar

Availability:

Multiple GPUs, Multiple CPUs