scoreboard players add @s wins 0
scoreboard players operation r Random = @s wins
execute unless score r Random matches 1.. run scoreboard players set r Random 1
execute unless score r Random matches ..31 run scoreboard players set r Random 31
function mctsts:util/random
scoreboard players operation n Random += @s wins
execute unless score n Random matches ..31 run scoreboard players set n Random 31
execute if score n Random matches 1 run function mctsts:game/death/noob
execute if score n Random matches 2..3 run function mctsts:game/death/basic1
execute if score n Random matches 4..7 run function mctsts:game/death/basic2
execute if score n Random matches 8..15 run function mctsts:game/death/basic3
execute if score n Random matches 16..23 run function mctsts:game/death/basic4
execute if score n Random matches 24..31 run function mctsts:game/death/basic5

scoreboard players set n Random 0