scoreboard objectives add RandomOffset dummy
scoreboard players set @s RandomOffset 0
execute as @s[scores={RandomOffset=0}] unless block ~2 ~-1 ~0 air if block ~2 ~0 ~0 air if block ~2 ~1 ~0 air if block ~2 ~2 ~0 air run scoreboard players set @s RandomOffset 1
execute as @s[scores={RandomOffset=0}] unless block ~0 ~-1 ~2 air if block ~0 ~0 ~2 air if block ~0 ~1 ~2 air if block ~0 ~2 ~2 air run scoreboard players set @s RandomOffset 2
execute as @s[scores={RandomOffset=0}] unless block ~-2 ~-1 ~0 air if block ~-2 ~0 ~0 air if block ~-2 ~1 ~0 air if block ~-2 ~2 ~0 air run scoreboard players set @s RandomOffset 3
execute as @s[scores={RandomOffset=0}] unless block ~0 ~-1 ~-2 air if block ~0 ~0 ~-2 air if block ~0 ~1 ~-2 air if block ~0 ~2 ~-2 air run scoreboard players set @s RandomOffset 4
execute as @s[scores={RandomOffset=0}] unless block ~0 ~0 ~-2 air if block ~0 ~1 ~-2 air if block ~0 ~2 ~-2 air if block ~0 ~3 ~-2 air run scoreboard players set @s RandomOffset 5
execute as @s[scores={RandomOffset=0}] unless block ~2 ~-2 ~0 air if block ~2 ~-1 ~0 air if block ~2 ~0 ~0 air if block ~2 ~1 ~0 air run scoreboard players set @s RandomOffset 6
execute as @s[scores={RandomOffset=0}] unless block ~0 ~-2 ~2 air if block ~0 ~-1 ~2 air if block ~0 ~0 ~2 air if block ~0 ~1 ~2 air run scoreboard players set @s RandomOffset 7
execute as @s[scores={RandomOffset=0}] unless block ~-2 ~-2 ~0 air if block ~-2 ~-1 ~0 air if block ~-2 ~0 ~0 air if block ~-2 ~1 ~0 air run scoreboard players set @s RandomOffset 8
execute as @s[scores={RandomOffset=0}] unless block ~0 ~-2 ~-2 air if block ~0 ~-1 ~-2 air if block ~0 ~0 ~-2 air if block ~0 ~1 ~-2 air run scoreboard players set @s RandomOffset 9
execute as @s[scores={RandomOffset=0}] unless block ~2 ~0 ~0 air if block ~2 ~1 ~0 air if block ~2 ~2 ~0 air if block ~2 ~3 ~0 air run scoreboard players set @s RandomOffset 10
execute as @s[scores={RandomOffset=0}] unless block ~0 ~0 ~2 air if block ~0 ~1 ~2 air if block ~0 ~2 ~2 air if block ~0 ~3 ~2 air run scoreboard players set @s RandomOffset 11
execute as @s[scores={RandomOffset=0}] unless block ~-2 ~0 ~0 air if block ~-2 ~1 ~0 air if block ~-2 ~2 ~0 air if block ~-3 ~2 ~0 air run scoreboard players set @s RandomOffset 12

execute as @s[scores={RandomOffset=1}] run tp ~2 ~0 ~0
execute as @s[scores={RandomOffset=2}] run tp ~0 ~0 ~2
execute as @s[scores={RandomOffset=3}] run tp ~-2 ~0 ~0
execute as @s[scores={RandomOffset=4}] run tp ~0 ~0 ~-2
execute as @s[scores={RandomOffset=5}] run tp ~0 ~1 ~-2
execute as @s[scores={RandomOffset=6}] run tp ~2 ~-1 ~0
execute as @s[scores={RandomOffset=7}] run tp ~0 ~-1 ~2
execute as @s[scores={RandomOffset=8}] run tp ~-2 ~-1 ~0
execute as @s[scores={RandomOffset=9}] run tp ~0 ~-1 ~-2
execute as @s[scores={RandomOffset=10}] run tp ~2 ~1 ~0
execute as @s[scores={RandomOffset=11}] run tp ~0 ~1 ~2
execute as @s[scores={RandomOffset=12}] run tp ~-2 ~1 ~0