Design
Models
API
API Mapping
Migration Guide
Syntax Support
Environment Variables
FAQ
RELEASE NOTES
Seed the default generator with random number.
Randomly generated seeds, the type is int.
Ascend GPU CPU
Ascend
GPU
CPU
Examples
>>> import numpy as np >>> from mindspore import seed >>> print(seed()) 1663920602