Add random array method