set_seed#

class set_seed(seed=None)[source]#

Reset the random seed – complicated because of Numba, which requires special syntax to reset the seed. This function also resets Python’s built-in random number generated.

Parameters:

seed (int) – the random seed