PM File (1-8) Prints
PM File (1-8) Prints
Output:
PRACTICAL 2
PRACTICAL 3
Using seed()
import random
# between 0 and 1
print(random.random())
random.seed(5)
print(random.random())
random.seed(7)
print(random.random())
random.seed(5)
print(random.random())
random.seed(7)
print(random.random())
PRACTICAL 4
PRACTICAL 5
PRACTICAL 6
PRACTICAL 7
PRACTICAL 8