dice algorithm (all nubers) | ScratchStats