Home
/
Python 3.11
/
Random
/
seed
Python 3.0
Python 3.9
Python 3.11
Functions
ID
EN
…
Random
seed
Python 3.11
Initialize the random number generator.
Syntax
PYTHON
Copy
random.seed(a=None, version=2)
See Also
os.urandom()
str
bytes
bytearray
int
str
bytes
int