Similar in C# & .NET 10 single-file app
"var rnd = new Random();while (true){Console.Write(rnd.Next(2) == 0 ? '╱' : '╲');}"|dotnet run -
#dotnet #csharp
Commodore 64'ers know that '10PRINT' maze, the same can be achieved on a ZX Spectrum, using two lines
5 for i=0 to 7: poke usr "a"+i,2^i : poke usr "b"+i,2^(7-i) : next i
10 print "AB"(int(1.5+rnd));: goto 10
the result is as follows: