Minecraft wiki entry for Randomizers, associated text: This randomizer uses a repeating command block adding 1 point to a score per tick, then another repeating command block truncating the value to its maximum. When a random value is needed, repeating command blocks testing for certain values are used. This setup is not completely random as it is based on the time is activated, but is random enough for most purposes.