seed#

ivy.seed(*, seed_value=0)[source]#

Set the seed for random number generation.

Parameters:

seed_value (int, default: 0) – Seed for random number generation, must be a positive integer. (Default value = 0)

Return type:

None

Examples

>>> ivy.seed(seed_value=42)