Skip to content

Instantly share code, notes, and snippets.

@cglosser
Last active July 30, 2018 12:42
Show Gist options
  • Save cglosser/63464e40b29e688850469627ab265045 to your computer and use it in GitHub Desktop.
Save cglosser/63464e40b29e688850469627ab265045 to your computer and use it in GitHub Desktop.
Program to randomly filter a character out of a supplied string
import string
import random
def main():
alphabet = list(string.ascii_lowercase)
random.shuffle(alphabet)
alphabet = ''.join(alphabet)
for char in alphabet:
print(char)
raw_input()
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment