import math import random a = [random.random() for i in range(0,10)] print a