seed

paddle. seed ( seed ) [source]

Sets the seed for global default generator, which manages the random number generation.

Parameters

seed (int) – The random seed to set. It is recommend to set a large int number.

Returns

The global default generator object.

Return type

Generator

Examples

>>> import paddle
>>> gen = paddle.seed(102)

Used in the guide/tutorials