added random array index
added random array index