Update the selection so that when the random number is out of bounds it is kept within the bounds using modulus to rope the number back within bounds.