Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Python Scramble Text
#!/usr/bin/python
import sys
import random
text = sys.stdin.read()
new_text = ""
for char in text:
if random.random() > 0.9:
new_text += random.choice("*._=`~")
else:
new_text += char
sys.stdout.write(new_text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.