pub fn gumbel<'a>( shape: impl IntoShape, dtype: DType, key: impl Into<Option<&'a Array>>, ) -> Array
Gumbel samples of shape and floating-point dtype, as MLX: −log(−log(u)) for u uniform in [0, 1).
shape
dtype
−log(−log(u))
u
[0, 1)