initial_seed

paddle.random. initial_seed ( ) int [source]

Returns the initial seed for generating random numbers as a Python int.

Returns

The 64-bit initial seed of the default generator on CPU place only.

Return type

int

Examples

>>> import paddle
>>> s = paddle.random.initial_seed()