brainpy.math.random.split_keys

Contents

brainpy.math.random.split_keys#

brainpy.math.random.split_keys(n)[source]#

Create multiple seeds from the current seed. This is used internally by pmap and vmap to ensure that random numbers are different in parallel threads.

New in version 2.4.5.

Parameters:

n (int) – The number of seeds to generate.