set_seed# dpeeg.utils.set_seed(seed: int = 42, ret_old_seed: bool = False) → None | int[source]# Set global random seed for random, Numpy and PyTorch. Parameters: seed (int) – The random seed to use. If None, the environment variable DPEEG_SEED is read, defaults to 42. ret_old_seed (bool, optional) – If True, return the old seed. Returns: old_seed – The old seed. Only returned if ret_old_seed is True. Return type: int, None