scoreboard players set max RNG_Constant 80
function backrooms:rng

execute if score RNG RNG_Variable matches 1 run place template backrooms:poolrooms/pr_zanodar_tjunction
execute if score RNG RNG_Variable matches 2 run place template backrooms:poolrooms/pr_zanodar_tjunction_shallow
execute if score RNG RNG_Variable matches 3 run place template backrooms:poolrooms/pr_zanodar_tjunction_deep
execute if score RNG RNG_Variable matches 4 run place template backrooms:poolrooms/pr_wenbell_bridges
execute if score RNG RNG_Variable matches 5 run place template backrooms:poolrooms/pr_wenbell_babel
execute if score RNG RNG_Variable matches 6 run place template backrooms:poolrooms/pr_markaabo_emptypool_1
execute if score RNG RNG_Variable matches 7 run place template backrooms:poolrooms/pr_markaabo_emptypool_2
execute if score RNG RNG_Variable matches 8 run place template backrooms:poolrooms/pr_markaabo_mapoolpicchu
execute if score RNG RNG_Variable matches 9 run place template backrooms:poolrooms/pr_markaabo_lockerarea
execute if score RNG RNG_Variable matches 10 run place template backrooms:poolrooms/pr_zanodar_cylinder
execute if score RNG RNG_Variable matches 11 run place template backrooms:poolrooms/pr_markaabo_doorways
execute if score RNG RNG_Variable matches 12 run place template backrooms:poolrooms/pr_markaabo_doorways_double_chimp
execute if score RNG RNG_Variable matches 13 run place template backrooms:poolrooms/pr_markaabo_infinity
execute if score RNG RNG_Variable matches 14 run place template backrooms:poolrooms/pr_markaabo_lockerroomcorridor
execute if score RNG RNG_Variable matches 15 run place template backrooms:poolrooms/pr_wenbell_4waypit
execute if score RNG RNG_Variable matches 16 run place template backrooms:poolrooms/pr_wenbell_antechamber
execute if score RNG RNG_Variable matches 17 run place template backrooms:poolrooms/pr_wenbell_corridor_1
execute if score RNG RNG_Variable matches 18 run place template backrooms:poolrooms/pr_wenbell_corridor_2
execute if score RNG RNG_Variable matches 19 run place template backrooms:poolrooms/pr_wenbell_pinwheel

execute if score RNG RNG_Variable matches 20 run place template backrooms:poolrooms/pr_starting_pool
execute if score RNG RNG_Variable matches 21 run place template backrooms:poolrooms/base_pool
execute if score RNG RNG_Variable matches 22 run place template backrooms:poolrooms/pr_exit_hole
execute if score RNG RNG_Variable matches 23 run place template backrooms:poolrooms/pr_eye
execute if score RNG RNG_Variable matches 24 run place template backrooms:poolrooms/pool_press
execute if score RNG RNG_Variable matches 25 run place template backrooms:poolrooms/pr_me_controler
execute if score RNG RNG_Variable matches 26 run place template backrooms:poolrooms/pr_cake_flower
execute if score RNG RNG_Variable matches 27 run place template backrooms:poolrooms/pr_gold_shrine
execute if score RNG RNG_Variable matches 28 run place template backrooms:poolrooms/pr_chair_gathering
execute if score RNG RNG_Variable matches 29 run place template backrooms:poolrooms/pr_heaven
execute if score RNG RNG_Variable matches 30 run place template backrooms:poolrooms/pr_molten_silver
execute if score RNG RNG_Variable matches 31 run place template backrooms:poolrooms/pr_ballpit
execute if score RNG RNG_Variable matches 32 run place template backrooms:poolrooms/pr_corridor
execute if score RNG RNG_Variable matches 33 run place template backrooms:poolrooms/pr_tunnels
execute if score RNG RNG_Variable matches 34 run place template backrooms:poolrooms/pr_pillarfall
execute if score RNG RNG_Variable matches 35 run place template backrooms:poolrooms/pr_inverted_stair
execute if score RNG RNG_Variable matches 36 run place template backrooms:poolrooms/pr_sky_cube
execute if score RNG RNG_Variable matches 37 run place template backrooms:poolrooms/pr_3_way
execute if score RNG RNG_Variable matches 38 run place template backrooms:poolrooms/pr_3_way_sculked
execute if score RNG RNG_Variable matches 39 run place template backrooms:poolrooms/pr_4_way
execute if score RNG RNG_Variable matches 40 run place template backrooms:poolrooms/pr_sculked_4_way
execute if score RNG RNG_Variable matches 41 run place template backrooms:poolrooms/pr_drowned_ledge
execute if score RNG RNG_Variable matches 42 run place template backrooms:poolrooms/pr_sky_stairs
execute if score RNG RNG_Variable matches 43 run place template backrooms:poolrooms/pr_guardianfall
execute if score RNG RNG_Variable matches 44 run place template backrooms:poolrooms/pr_moyai_house
execute if score RNG RNG_Variable matches 45 run place template backrooms:poolrooms/pr_fall_hole
execute if score RNG RNG_Variable matches 46 run place template backrooms:poolrooms/pr_spider_pit

#Bonus Chances
execute if score RNG RNG_Variable matches 47 run place template backrooms:poolrooms/pr_exit_hole
execute if score RNG RNG_Variable matches 48..49 run place template backrooms:poolrooms/pr_zanodar_tjunction
execute if score RNG RNG_Variable matches 50..51 run place template backrooms:poolrooms/pr_zanodar_tjunction_shallow
execute if score RNG RNG_Variable matches 52 run place template backrooms:poolrooms/pr_zanodar_tjunction_deep
execute if score RNG RNG_Variable matches 53..54 run place template backrooms:poolrooms/pr_markaabo_doorways
execute if score RNG RNG_Variable matches 55..56 run place template backrooms:poolrooms/pr_markaabo_emptypool_1
execute if score RNG RNG_Variable matches 57..58 run place template backrooms:poolrooms/pr_markaabo_emptypool_2
execute if score RNG RNG_Variable matches 59..60 run place template backrooms:poolrooms/pr_wenbell_bridges
execute if score RNG RNG_Variable matches 61 run place template backrooms:poolrooms/pr_wenbell_babel
execute if score RNG RNG_Variable matches 62..63 run place template backrooms:poolrooms/pr_markaabo_mapoolpicchu
execute if score RNG RNG_Variable matches 64 run place template backrooms:poolrooms/pr_markaabo_lockerarea
execute if score RNG RNG_Variable matches 65 run place template backrooms:poolrooms/pr_markaabo_infinity
execute if score RNG RNG_Variable matches 66..67 run place template backrooms:poolrooms/pr_markaabo_lockerroomcorridor
execute if score RNG RNG_Variable matches 68..69 run place template backrooms:poolrooms/pr_wenbell_4waypit
execute if score RNG RNG_Variable matches 70 run place template backrooms:poolrooms/pr_wenbell_antechamber
execute if score RNG RNG_Variable matches 71..72 run place template backrooms:poolrooms/pr_wenbell_corridor_1
execute if score RNG RNG_Variable matches 73..74 run place template backrooms:poolrooms/pr_wenbell_corridor_2
execute if score RNG RNG_Variable matches 75 run place template backrooms:poolrooms/pr_wenbell_pinwheel
execute if score RNG RNG_Variable matches 76..77 run place template backrooms:poolrooms/pr_starting_pool
execute if score RNG RNG_Variable matches 78..80 run place template backrooms:poolrooms/base_pool

