The list is random:
>>> randomList
[0.46044625854330556, 0.7259964854084655, 0.23337439854506958, 0.4510862027107614, 0.5306153865653811, 0.8419679084235715, 0.8742117729328253, 0.7634456118593921, 0.5953545552492302, 0.7763910850561638]
But you print its elements as itegers with "%d" % randomList[index], so all of these values are rounded to zero. You can use the format "% f" to print floating point numbers:
>>> print("%.5f" % randomList[index])
0.77639
'{: M: Nf}.format':
>>> print("{.5f}".format(randomList[index]))
0.77639