random: Adjust the number of loops when initializing