1# generate random integer values
2from random import randint
3
4value = randint(0, 10)
5print(value)
6
1from random import randint
2
3print(randint(1,5))
4
5##Possible Outputs##
6#1
7#2
8#3
9#4
10#5
1# To create a list of random integer values:
2import random
3randomlist = random.sample(range(10, 30), 5)
4# Output:
5# [16, 19, 13, 18, 15]
6
7# To create a list of random float numbers:
8import numpy
9random_float_array = numpy.random.uniform(75.5, 125.5, 2)
10# Output:
11# [107.50697835, 123.84889979]