def randomList(n): s = [0] * n for i in range(n): s[i] = random.random() return s