simple random array generator