Trying to make a random number generator

hey guys the path I chose for this is using a scoreboard thats constantly increasing itself and eventually resets back to 0, but I'm not able to actually reset it automatically, here's the commands: 1- scoreboard objectives add Randomizer dummy 2- scoreboard players add @a Randomizer 1 3- execute if score @r Randomizer >= 6 Randomizer run scoreboard players reset @a Randomizer 1 and 2 work fine but 3 does nothing and the command feedback by the commandblock says nothing, any ideas?
Continue to help post