In this example, we are giving a program to generate a random number.
# Generate a random numberimport randomprint(random.randint(0,9))
# Generate a random number
import random
print(random.randint(0,9))
8
Related Tags: C Examples, C++ Examples, Java Programming Examples