execute unless score repeat_c r matches 0..999 run scoreboard players set repeat_c r 0
scoreboard players add repeat_c r 1

scoreboard players operation repeat_1 r = repeat_c r
scoreboard players operation repeat_1 r %= num1 r
execute if score repeat_1 r matches 0 run function z/repeat/1

scoreboard players operation repeat_2 r = repeat_c r
scoreboard players operation repeat_2 r %= num2 r
execute if score repeat_2 r matches 1 run function z/repeat/2

scoreboard players operation repeat_5 r = repeat_c r
scoreboard players operation repeat_5 r %= num5 r
execute if score repeat_5 r matches 2 run function z/repeat/5

scoreboard players operation repeat_20 r = repeat_c r
scoreboard players operation repeat_20 r %= num20 r
execute if score repeat_20 r matches 9 run function z/repeat/20

scoreboard players operation repeat_100 r = repeat_c r
scoreboard players operation repeat_100 r %= num100 r
execute if score repeat_100 r matches 49 run function z/repeat/100

scoreboard players operation repeat_200 r = repeat_c r
scoreboard players operation repeat_200 r %= num200 r
execute if score repeat_200 r matches 99 run function z/repeat/200