mlx.core.random.key

Contents

mlx.core.random.key#

key(seed: int) array#

Get a PRNG key from a seed.

Parameters:

seed (int) – Seed for the PRNG.

Returns:

The PRNG key array.

Return type:

array