Skip to content

Instantly share code, notes, and snippets.

@chaddotson
Created February 6, 2022 20:22
Show Gist options
  • Save chaddotson/5a1c0eab7147dbab466a2f27a34dc8b4 to your computer and use it in GitHub Desktop.
Save chaddotson/5a1c0eab7147dbab466a2f27a34dc8b4 to your computer and use it in GitHub Desktop.
from random import choice
t = ""
s = " ▁▂▃▄▅▆▇█"
z = 0
for i in range(5000):
z += choice([-1, 1])
if z < 0:
z = z + 2
elif z >= len(s):
z = z - 2
t += s[z]
print(t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment