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]
1offsetBiasSample = [randint(-10,10)/100 for i in range(10)]
2offsetBias = choice(offsetBiasSample)
3index_offsetBias = randint(0,len(oldBiases)-1)
4oldBiases[index_offsetBias] = oldBiases[index_offsetBias] + offsetBias