Skip to content

Instantly share code, notes, and snippets.

@ElectronicRU
Last active December 13, 2015 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ElectronicRU/4953422 to your computer and use it in GitHub Desktop.
Save ElectronicRU/4953422 to your computer and use it in GitHub Desktop.
import random
def recase(w):
return ''.join(x.upper() if random.randint(0, 1) else x.lower() for x in w)
import sys
n = int(sys.argv[2])
for i in range(n):
print(recase(sys.argv[1]), end=' ')
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment