jax.random package — JAX documentation
https://jax.readthedocs.io/en/latest/jax.random.htmlPRNG Keys¶. Unlike the stateful pseudorandom number generators (PRNGs) that users of NumPy and SciPy may be accustomed to, JAX random functions all require an explicit PRNG state to be passed as a first argument. The random state is described by two unsigned 32-bit integers that we call a key, usually generated by the jax.random.PRNGKey() function: >>> from jax import …