Adding random array generator