Python Maze One-Liner

There are many beautiful pieces of code in the world. One is the maze generation algorithm in Commodore 64 BASIC that goes 10 PRINT CHR$(205.5+RND(1)); : GOTO 10. As far as I can tell, BASIC's popularity has past, so I offer a Pythonic interpretation:

python -c '
import math, os, random;
size=math.prod(os.get_terminal_size()) - 1;
maze=random.choices(("╱", "╲"), k=size);
print(*maze, sep="", end=""); input();
'
╱╲╲╱╲╱╱╱╲╲╱╱╲╲╲╲╲╱╲╱╱╱╱╲╱╱╱╲╲╲╲╱╲╲╱╱╲╱╱╲╲╱╱╱╲╲╲╱╲╲╲╲╱╲╱╲╲╲╱╱╲╱╱╱╱╲╱╱╲╱╲╲╲╲╲╱╱╲╱╲╱╱╲╲╱╲╲╲╲╲╱╲╲╲╲╱╲╲╲╱╲╱╲╱╱╱╲╲╲╱╱╱╱╲╱╲╲╲╱╱╲╲╲╲╱╲╱╲
╲╱╲╲╱╱╱╱╱╲╲╱╱╱╲╱╱╲╲╱╱╲╲╲╱╱╲╲╲╲╲╲╲╱╲╲╱╲╱╱╲╲╲╱╲╱╲╲╲╲╱╲╲╱╲╱╱╲╱╲╱╲╱╱╲╱╱╱╲╱╲╱╲╱╱╲╲╱╲╱╲╲╲╱╲╲╱╲╲╱╱╱╱╲╲╱╱╲╲╲╲╲╱╲╱╲╱╲╲╲╲╱╲╲╲╱╲╲╲╱╱╱╲╱╲╲╲╲
╱╱╱╲╱╲╱╱╱╱╱╱╱╲╲╱╱╱╱╲╲╱╱╱╲╲╱╲╱╱╱╱╱╲╲╲╱╱╱╱╱╱╱╱╲╱╲╱╱╱╲╲╲╲╱╱╱╲╱╱╱╱╱╲╲╱╱╱╲╱╲╱╱╲╲╲╱╱╲╱╱╱╲╲╲╲╲╲╱╲╲╱╱╱╱╲╲╱╱╲╱╱╱╲╱╲╱╱╱╲╲╱╲╲╱╱╱╱╱╱╱╲╱╲╲╲╱╲
╲╲╱╱╱╱╲╲╲╲╱╲╲╱╱╱╱╱╲╲╲╱╲╲╲╱╲╲╱╲╲╲╱╲╱╱╲╲╱╱╲╱╲╲╲╲╱╱╲╲╲╲╲╲╲╲╲╱╲╱╲╱╱╱╱╱╱╱╱╲╲╲╲╱╱╲╱╱╲╱╲╱╱╲╱╲╲╱╲╱╱╲╲╲╱╲╱╲╲╱╲╲╲╲╲╱╲╲╲╱╲╱╲╲╲╱╱╲╱╲╲╲╲╱╲╲╲╱
╲╲╱╲╱╲╲╱╱╲╲╲╱╲╲╲╱╲╱╱╱╲╱╱╱╲╲╲╲╱╱╲╱╱╱╲╱╲╲╱╱╱╱╲╱╲╱╲╱╱╲╱╲╱╲╱╱╲╲╱╲╱╱╲╲╱╲╲╲╱╱╲╱╲╱╲╱╲╱╱╲╲╲╲╲╲╲╲╱╲╲╲╲╱╱╲╱╱╱╲╱╲╲╲╱╲╱╱╲╱╲╲╲╲╱╲╲╲╲╲╱╲╲╲╲╱╱╲
╲╲╲╲╱╲╱╲╱╱╱╲╱╱╱╱╲╲╱╲╱╲╲╲╲╱╱╱╲╱╲╲╱╱╱╱╱╱╱╱╱╱╱╲╲╱╲╲╱╱╱╲╲╱╲╲╲╲╱╲╲╲╱╱╲╲╲╱╲╱╱╱╱╲╱╱╱╱╲╱╱╱╱╱╱╱╲╱╲╱╲╲╱╲╱╱╲╱╱╲╱╲╲╲╱╲╱╲╱╲╱╱╲╱╱╱╲╱╲╱╱╲╱╲╱╲╲╲
╲╲╲╱╱╱╲╲╱╲╱╲╲╱╱╱╱╲╱╱╲╱╲╲╱╲╲╲╱╱╱╲╱╱╱╱╱╱╲╱╱╲╱╲╲╱╲╱╱╲╱╲╱╱╱╲╱╲╲╲╲╱╲╲╲╲╲╲╱╱╲╱╱╱╲╲╱╱╲╲╱╲╱╱╱╲╲╱╱╱╱╱╱╱╲╲╲╲╲╱╲╱╲╱╲╲╲╲╲╱╱╲╱╲╲╲╲╲╱╱╱╱╱╱╱╲╱╲
╲╲╲╲╲╲╲╱╱╱╲╱╱╱╲╱╲╲╱╱╲╱╱╲╲╲╱╲╱╲╱╱╱╲╱╱╲╱╱╲╲╲╱╱╱╱╲╱╱╲╱╱╲╱╱╱╲╱╱╲╲╱╱╱╱╱╱╲╲╲╲╲╲╱╱╲╲╱╱╲╲╲╲╲╱╱╱╱╱╲╱╲╱╱╱╲╱╱╱╱╲╲╱╱╱╱╲╲╲╲╲╲╱╲╲╲╱╲╱╲╱╲╲╲╲╲╱╱
╲╲╲╲╲╱╲╱╲╲╲╱╲╲╲╲╱╱╱╲╲╱╱╱╲╲╱╱╱╱╲╱╲╱╲╱╲╱╲╱╲╲╲╱╲╱╲╲╱╲╲╲╱╲╲╱╱╱╱╱╲╱╲╱╱╲╱╱╲╲╱╱╱╱╲╱╱╲╲╱╱╲╱╱╲╲╱╱╱╱╱╱╱╱╲╲╲╲╱╱╱╲╱╲╲╱╱╱╲╱╱╱╲╲╱╲╲╱╲╲╲╲╱╱╲╱╱╱
╲╱╲╲╱╲╲╱╲╲╲╲╲╱╲╲╱╱╲╱╱╱╱╲╱╲╱╲╱╲╲╱╲╱╱╱╱╲╱╲╱╱╲╱╱╲╲╲╱╱╱╱╲╲╱╲╱╱╲╲╱╱╲╲╱╲╱╲╲╲╲╲╱╱╲╲╲╱╲╲╲╱╲╱╲╱╲╱╱╲╲╱╱╲╲╲╱╱╲╱╲╱╲╲╲╲╱╱╱╱╱╱╱╲╱╱╲╱╱╲╱╱╱╱╱╲╲╲
╱╲╱╱╲╲╱╲╲╱╱╲╱╲╲╱╱╲╱╱╲╱╱╱╱╲╲╱╱╲╱╲╲╱╲╲╲╲╱╱╱╲╱╱╱╲╲╲╲╱╱╲╲╲╱╱╲╱╲╲╲╱╱╲╱╲╱╲╱╲╱╱╱╱╱╲╲╱╲╲╲╱╲╱╲╲╲╲╲╲╲╲╱╲╱╲╲╱╲╱╱╱╲╲╱╲╱╲╱╲╱╱╱╱╲╱╲╱╲╱╲╲╲╲╱╲╲╲
╱╲╲╲╲╱╲╱╲╲╱╱╱╱╱╱╱╲╲╱╲╲╱╱╲╲╱╱╲╱╱╲╲╲╱╲╲╱╱╱╲╱╲╱╱╲╱╲╱╱╲╲╲╲╲╱╲╲╲╱╲╱╲╱╱╲╱╲╲╲╱╱╱╲╱╲╲╱╲╱╱╱╱╲╲╱╲╲╱╱╲╲╱╲╲╲╲╱╲╲╲╱╲╲╱╱╱╲╲╱╱╱╱╱╲╲╲╱╲╱╱╱╱╱╲╲╲╱
╲╱╲╱╲╱╲╲╲╱╱╲╱╱╱╱╲╱╱╲╱╱╲╱╲╱╲╱╲╱╱╲╲╲╲╱╲╱╱╱╱╲╱╲╲╲╱╲╲╱╲╲╱╱╲╲╱╱╲╱╱╱╲╱╱╱╱╲╱╱╲╲╲╲╲╲╱╲╱╲╱╲╲╲╱╲╱╲╲╱╲╱╱╲╲╲╱╱╲╲╲╲╱╲╱╲╱╱╲╱╱╱╱╱╲╱╲╱╲╲╱╱╱╲╲╱╲╲
╱╲╱╲╱╲╱╲╱╱╱╲╱╱╱╲╲╲╱╱╲╱╱╱╱╲╲╲╱╲╲╱╲╲╱╱╱╱╲╲╱╲╱╲╱╱╲╲╱╲╲╲╲╱╲╱╱╱╱╱╱╲╱╲╱╲╲╱╱╲╱╱╲╲╲╱╲╱╱╱╱╱╲╱╱╱╱╱╲╱╲╱╲╲╱╱╲╱╲╱╲╲╲╱╱╲╲╱╲╱╱╲╲╲╲╱╲╲╱╲╲╲╱╲╲╱╱╲
╲╱╲╱╲╲╱╱╲╱╲╱╲╱╱╱╲╱╲╱╱╱╱╲╱╱╱╱╱╱╱╱╲╱╱╱╱╲╱╲╱╱╲╲╲╲╱╱╱╲╱╲╲╲╲╱╱╲╱╲╲╲╱╲╲╱╱╱╱╲╲╲╱╱╱╱╱╱╲╱╱╱╲╲╲╲╲╱╱╱╱╱╲╲╲╲╲╱╱╱╱╱╱╱╱╲╱╱╱╲╱╲╲╲╱╲╱╲╱╱╲╲╱╱╱╲╲╱
╲╲╲╱╱╲╲╱╱╲╲╱╲╱╲╲╲╲╱╱╲╲╲╲╲╲╱╲╱╲╱╲╲╱╱╱╱╲╲╱╱╱╲╱╲╲╲╱╱╲╲╲╲╱╲╱╱╱╱╲╲╱╱╱╱╱╲╲╱╲╲╱╱╱╲╱╱╱╱╱╱╲╱╲╱╱╱╲╲╱╱╲╱╱╲╱╱╲╱╱╲╱╱╱╱╱╲╱╱╱╱╱╱╱╱╲╱╱╲╱╲╱╱╱╲╱╲╱
╲╱╲╲╱╲╱╲╱╱╲╱╲╱╲╲╱╲╱╱╱╲╱╲╱╲╱╱╲╲╲╱╱╲╲╱╲╲╱╱╲╲╲╱╱╱╲╲╱╱╱╱╱╲╲╱╱╲╱╲╱╱╱╱╲╲╱╱╲╲╲╲╱╱╱╲╱╲╱╱╱╱╱╲╱╲╲╱╲╱╱╲╲╱╱╲╲╱╲╲╱╱╲╲╲╱╲╱╲╲╲╱╱╱╱╱╲╱╲╱╱╱╱╲╱╲╲╲
╱╱╲╲╲╲╲╲╲╱╱╲╲╲╱╲╱╱╱╲╱╱╲╱╱╲╲╱╲╲╲╲╱╱╲╲╱╱╲╲╲╲╲╱╱╱╲╱╱╲╲╱╱╱╲╱╲╲╲╱╲╱╱╲╱╲╲╲╲╲╲╲╲╱╱╱╲╲╲╲╲╲╱╱╱╱╱╱╱╲╲╲╱╱╱╲╱╲╱╱╱╱╲╲╱╲╱╱╱╲╱╱╲╲╱╲╱╱╲╲╲╲╲╲╱╱╱╲
╲╲╱╲╱╱╲╱╱╱╱╲╱╱╱╲╲╱╱╱╲╱╱╲╲╱╲╱╲╱╱╱╱╲╱╲╲╱╱╲╱╱╱╱╲╱╱╲╲╱╱╱╱╱╲╲╲╱╲╲╱╲╱╲╱╱╱╱╱╲╲╱╱╱╱╲╱╱╱╱╲╱╲╲╲╲╲╲╲╲╲╲╲╲╲╱╲╱╲╲╲╲╲╲╲╱╱╲╲╱╱╲╱╲╱╱╱╲╲╲╱╲╱╲╲╲╲╱
╲╱╲╲╱╲╲╲╱╱╱╲╲╲╱╱╲╲╱╲╲╲╲╱╱╱╲╲╱╱╲╱╱╱╲╱╱╲╱╲╱╲╱╱╲╱╱╱╱╲╲╲╲╱╱╱╱╱╱╱╲╱╲╲╱╱╲╱╱╱╲╱╲╲╲╲╲╲╱╲╱╲╱╱╲╲╱╱╱╲╱╲╲╱╱╱╱╲╲╲╱╲╲╲╲╱╲╱╲╱╱╱╱╱╱╱╲╱╲╲╱╲╱╲╲╱╲╲
╲╱╱╱╲╲╲╲╱╲╱╱╱╱╲╲╱╲╱╲╱╲╱╱╲╱╲╱╱╲╲╲╱╱╱╲╱╱╱╲╱╱╱╲╲╱╱╲╲╱╱╲╱╱╲╲╲╱╲╲╱╱╲╲╱╱╱╲╲╱╱╲╱╲╱╱╲╲╲╱╱╱╱╲╲╲╲╲╲╲╲╱╱╲╱╱╱╲╲╲╲╱╱╲╱╱╱╲╱╱╱╱╲╱╲╲╲╲╱╲╲╲╱╱╲╱╲╱
╲╲╲╲╱╲╲╱╱╲╲╱╲╱╱╱╱╱╲╲╱╲╱╱╱╱╲╲╲╲╱╲╱╱╱╲╱╱╲╲╲╲╱╲╱╱╲╲╲╲╲╲╲╱╱╲╲╱╱╲╲╲╱╱╱╱╱╲╲╱╲╱╱╱╱╲╲╲╲╱╱╲╱╲╲╲╱╲╱╱╱╱╲╲╲╲╲╱╱╲╱╲╲╱╱╲╱╱╱╲╱╱╱╱╲╱╱╱╱╲╲╲╲╲╲╱╲╱
╲╱╱╲╲╲╲╲╱╲╲╲╲╲╱╲╱╱╲╲╲╲╲╱╱╱╱╱╲╱╱╱╲╲╲╲╱╲╲╱╲╲╲╲╲╱╲╱╱╱╲╲╱╲╱╱╱╲╲╱╲╲╱╱╲╱╲╱╲╱╲╲╲╱╲╱╱╲╲╲╲╲╲╱╱╲╱╱╲╲╲╲╲╲╱╱╱╱╲╱╱╲╲╱╲╱╲╲╲╲╲╱╱╲╲╱╱╱╱╱╲╲╲╲╱╲╱╲
╲╲╲╱╱╱╲╱╱╲╲╱╲╱╱╲╱╲╲╲╱╱╲╲╱╱╲╲╱╲╱╲╲╱╱╱╱╱╱╱╲╲╱╱╲╲╲╱╲╱╱╱╲╲╱╲╱╲╲╲╲╱╲╱╱╲╱╲╲╲╲╱╱╲╱╲╲╱╱╱╱╲╱╲╲╲╲╲╱╱╲╲╲╱╲╱╱╱╲╲╱╲╱╱╱╲╱╲╱╲╱╱╲╱╱╲╱╲╲╱╲╱╲╱╲╱╱╱
╱╱╲╲╱╱╲╱╲╲╲╲╲╲╱╱╲╲╱╱╱╱╱╱╲╲╲╱╲╱╲╱╱╱╱╲╱╱╱╲╲╲╲╱╱╱╱╱╱╲╱╲╲╲╱╱╱╲╱╲╱╱╲╲╲╱╲╱╲╱╱╱╱╲╲╲╱╱╱╲╲╲╲╱╲╱╱╱╱╱╱╲╱╲╱╲╱╲╲╱╱╱╱╱╲╱╲╱╱╱╲╱╱╱╲╱╱╲╱╲╲╲╲╲╲╱╲╲
╲╱╱╲╲╱╲╱╲╱╲╱╱╲╱╱╱╱╱╲╲╱╲╱╱╱╱╲╱╲╱╱╱╲╱╱╲╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╲╱╱╱╱╲╱╲╱╱╲╱╱╲╲╲╲╲╱╱╱╲╱╱╱╱╲╲╲╲╲╱╱╱╱╲╱╲╱╲╱╱╲╲╲╱╲╱╱╲╲╲╲╲╱╱╲╲╲╱╲╲╲╱╱╱╲╲╱╲╲╱╱╱╲╲
╱╱╱╱╲╲╲╲╲╲╲╱╲╲╱╱╲╱╱╲╲╲╲╱╱╱╲╲╱╲╲╱╲╲╱╲╲╲╱╲╲╲╲╲╱╱╲╱╲╱╲╱╱╱╱╲╲╱╱╲╱╱╱╲╱╲╱╲╲╱╲╱╲╲╲╲╱╲╱╲╲╲╲╱╱╲╱╲╱╲╲╱╱╱╱╱╲╱╲╱╱╱╱╱╱╲╱╱╲╲╱╱╱╲╱╲╱╱╱╲╲╲╱╱╲╲╱╱
╱╲╲╱╱╲╱╱╱╱╲╱╱╱╲╱╱╱╲╲╲╲╲╲╱╲╲╲╲╲╲╲╲╲╲╲╱╲╱╲╱╱╲╲╱╱╲╲╱╲╱╲╲╱╱╱╲╲╱╱╲╱╱╲╱╲╱╱╱╲╱╱╲╱╲╲╱╱╱╲╲╱╲╲╱╱╱╲╲╱╱╲╲╱╱╱╲╱╲╱╲╱╱╲╱╱╲╲╲╲╲╲╲╲╲╲╲╱╱╱╲╲╱╱╱╱╲╲
╱╲╱╱╱╲╱╲╱╱╲╱╲╲╲╲╲╲╱╱╱╱╲╱╲╱╲╱╱╱╱╱╲╲╱╲╱╲╱╲╲╱╱╲╱╲╲╱╲╱╱╱╲╲╱╱╲╱╱╱╲╲╱╲╱╱╲╱╱╱╲╱╱╱╲╲╲╲╱╱╱╱╲╲╱╱╲╱╲╲╲╲╱╲╱╱╲╱╱╱╲╱╲╱╲╲╲╲╱╱╱╲╱╱╱╲╱╲╱╱╱╱╲╲╱╱╱╱
╱╲╱╲╲╲╲╲╱╲╱╱╲╱╲╲╱╲╲╱╱╲╲╱╲╱╱╱╱╲╱╲╲╲╱╲╱╲╲╱╲╱╲╲╱╱╲╲╱╱╱╱╱╲╲╲╱╱╱╲╱╱╱╱╱╱╱╲╱╱╲╲╱╲╱╲╱╱╱╲╱╲╲╱╲╱╲╱╱╱╲╱╲╱╱╲╱╱╱╲╲╱╲╲╱╲╱╱╱╱╲╲╱╲╱╱╱╲╱╱╲╱╲╲╲╲╱╲
╱╱╱╱╲╲╱╲╱╱╱╱╱╱╲╲╲╲╲╲╲╱╱╲╱╱╱╲╱╱╱╱╱╱╱╲╲╱╲╱╲╱╲╱╲╲╱╱╲╲╲╱╲╱╲╲╱╱╱╲╱╱╱╲╲╲╲╲╱╲╱╲╲╱╱╲╱╱╲╲╱╱╲╱╱╱╲╱╲╲╱╲╲╱╱╲╲╱╲╱╱╲╱╱╱╱╱╲╲╲╲╱╲╲╲╱╲╲╲╱╲╱╲╱╱╲╱╱
╱╱╲╱╱╱╲╱╲╱╲╲╲╲╲╱╲╱╱╲╲╲╲╲╲╲╱╱╲╱╲╱╲╱╲╲╲╱╲╱╲╲╲╲╲╲╲╲╱╲╱╱╲╱╱╲╱╲╱╱╱╱╲╲╱╱╱╲╲╲╲╲╲╲╲╲╱╱╱╱╲╲╱╱╱╱╲╲╲╱╱╱╲╱╱╱╱╱╲╲╱╲╲╲╲╱╲╱╲╲╱╲╲╲╲╱╱╱╱╱╱╱╲╲╱╲╱╲
╱╲╱╱╲╲╲╲╱╱╲╱╲╱╱╱╲╲╱╲╲╱╱╲╱╱╱╲╲╲╲╲╲╱╱╱╲╱╲╲╲╱╲╱╲╲╱╱╱╲╱╱╲╲╲╲╲╱╲╲╱╱╱╱╲╲╲╲╱╱╲╲╱╱╲╱╲╱╱╱╱╱╱╲╱╱╱╱╱╲╲╲╲╱╱╱╲╲╲╲╲╱╱╱╲╱╱╲╱╱╱╲╲╲╱╲╲╱╱╱╲╱╲╱╱╱╱╲
╱╲╱╲╱╱╱╲╱╱╲╲╲╱╱╲╱╲╲╱╱╲╲╱╲╲╲╱╲╲╲╱╱╱╲╲╱╲╱╱╲╲╱╱╱╲╱╱╲╱╲╱╱╱╲╱╱╱╲╱╱╱╱╲╱╱╲╱╲╱╱╱╲╱╱╲╲╲╱╲╲╱╲╲╱╲╱╲╲╱╲╱╲╱╱╲╲╲╱╱╱╲╲╲╱╲╱╱╲╱╱╱╲╲╲╱╲╲╱╲╲╱╲╱╲╱╱╱
╲╲╲╱╱╱╱╱╲╱╱╲╲╱╱╲╱╱╲╲╱╱╲╲╲╱╱╲╱╲╱╱╱╱╲╲╱╱╲╲╱╱╲╱╲╲╱╲╱╱╲╲╱╱╱╱╲╲╱╱╲╲╱╲╱╱╲╱╱╲╱╲╲╲╲╲╲╱╲╲╲╲╲╱╱╲╱╲╱╲╲╱╲╱╱╱╱╲╲╱╲╲╱╱╱╱╲╲╱╱╱╲╱╱╱╲╱╲╱╱╱╱╲╱╱╲╲╲
╱╲╲╱╱╲╱╲╱╲╲╱╲╱╲╲╱╲╱╱╱╲╱╲╲╲╱╱╲╱╲╱╱╱╱╲╲╲╲╱╱╲╲╲╱╲╲╲╲╲╱╲╲╱╲╲╲╱╱╱╱╲╲╲╱╱╱╱╱╱╲╱╲╱╲╲╱╲╱╲╲╲╲╱╲╲╲╱╲╲╱╲╱╲╲╱╲╲╲╱╱╲╲╲╱╱╱╲╱╲╱╱╱╲╲╲╱╱╱╲╱╲╲╲╲╱╲╲
╱╱╱╱╱╱╲╱╲╱╱╲╱╱╱╱╱╱╱╱╲╲╲╲╱╱╲╱╱╲╱╲╲╲╲╲╱╲╱╲╱╲╲╲╱╱╱╲╱╱╲╱╲╲╱╲╲╲╲╲╲╱╱╱╲╱╲╲╱╱╱╲╲╲╲╲╱╱╲╱╲╲╱╱╲╱╲╲╲╲╱╲╱╲╱╱╱╲╱╲╱╲╱╱╱╲╱╱╱╲╲╱╲╲╲╲╱╱╱╱╱╱╲╲╱╲╱╲
╲╲╱╱╲╲╲╱╲╱╲╱╱╲╱╱╱╲╲╱╱╱╱╱╲╲╱╱╲╲╲╲╲╲╲╱╱╲╱╱╱╲╱╲╱╱╱╱╲╱╱╲╲╲╱╲╱╱╱╱╲╱╱╲╱╱╱╲╲╲╱╲╱╲╱╱╱╲╲╲╱╲╱╲╲╲╱╱╲╱╱╱╱╱╲╱╱╲╱╲╱╱╱╲╱╲╲╲╲╲╲╲╱╲╲╲╱╲╱╲╱╲╲╱╱╲╱╲