mindspore.initial_seed

View Source On Gitee
mindspore.initial_seed()[source]

Return the initial seed of the default generator.

Returns

The initial seed of the default generator.

Supported Platforms:

Ascend GPU CPU

Examples

>>> from mindspore import manual_seed, initial_seed
>>> manual_seed(14)
>>> print(initial_seed())
14