seed function

(Shortest import: from brian2 import seed)

brian2.devices.device.seed(seed=None)[source]

Set the seed for the random number generator.

Parameters:

seed : int, optional

The seed value for the random number generator, or None (the default) to set a random seed.

Notes

This function delegates the call to Device.seed of the current device.