Randomly spawn wall with probability of 50%

This seems like it should be very
simple.

And it is:

And there’s half a dozen ways of doing it. Or like this: