jax.random.gumbel

Contents

jax.random.gumbel#

jax.random.gumbel(key, shape=(), dtype=<class 'float'>)[source]#

Sample Gumbel random values with given shape and float dtype.

The values are distributed according to the probability density function:

\[f(x) = e^{-(x + e^{-x})}\]
Parameters:
Return type:

Array

Returns:

A random array with the specified shape and dtype.