now generates an array with random numbers