1# generate random integer values
2from random import randint
3
4value = randint(0, 10)
5print(value)
6
1# imports random
2import random
3# randint generates a random integar between the first parameter and the second
4print(random.randint(1, 100))
1import random
2print(random.randint(3, 7)) #Prints a random number between 3 and 7
3array = [cars, bananas, jet]
4print(random.choice(array)) #Prints one of the values in the array at random
1#to choose a random number simply do this
2import random
3print(random.randint(1, 100))
1# Assessment Task 7.2.1
2def DisplayOddNum(N):
3 pass
4
5for x in DisplayOddNum(20)
6 print(x)