random array exercise