mindspore.initial_seed

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