DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Random — Example 176

Quick explanation + ready code for: Random.

Python Random Back to examples
Back to language
Syntax: Random in Python. ID: #176

Code

import random
print(random.randint(0, 99))

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.