changed the range of random for [i +1, length - 1] to [i, length -1], so there is a chance that the number stays in it's original position