debugging randomized indexArray