default_rng

Contents

default_rng#

class braincore.random.default_rng(seed_or_key=None, clone=True)[source]#

Get the default random state.

Parameters:
  • seed_or_key – The seed (an integer) or the jax random key.

  • clone (bool) – Bool. Whether clone the default random state.

Return type:

RandomState

Returns:

The random state.