zero.random.seed

zero.random.seed(seed)[source]

Set seeds in random, numpy and torch.

Parameters

seed (int) – the seed for all mentioned libraries. Must be less than 2 ** 32 - 1.

Raises

AssertionError – if the seed is not less than 2 ** 32 - 1

Return type

None

Examples

zero.random.seed(0)