mindspore.seed

View Source On AtomGit
mindspore.seed()[source]

Seed the default generator with a random number.

Returns

int, the randomly generated seed.

Supported Platforms:

Ascend GPU CPU

Examples

>>> from mindspore import seed
>>> print(seed())
1663920602