instead of Math.random() the value of the loop variable is used