mindspore.seed

mindspore.seed()[source]

Seed the default generator with random number.

Returns

Randomly generated seeds, the type is int.

Supported Platforms:

Ascend GPU CPU

Examples

>>> import numpy as np
>>> from mindspore import seed
>>> print(seed())
1663920602