method found for shuffling inside an array