removed console.log of randArray[]