How do i make my items in arcade not spawn in my walls when the spawn coordinates are randomized

I am having a problem with my game where coins and other items are spawning inside the walls out of the reach of the player. The spawn coordinates are randomized so they spawn anywhere and unfortunately that mean inside the walls aswell can somebody please help me I’m really stuck.

Make it when its on a wall tile either to not spawn or to move it 16 to a side
Basically you could also just make an array of where the walls are and test if the coordinates are on one of thrm