fill array with random numbers python code example Example: fill an array with random numbers python x = random.rand(n)