Siretu
Starcraft 2 Editor Moderator
- Reaction score
- 293
Yeah, it was easy to do. I just felt like posting it here.
PHP:
from time import sleep
import sys
import random
x = 0
stack = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0']
while x == 0:
print 'Random Password Generator'
print
sleep(0.1)
print 'Password length?'
length = input(">>>")
loop = 0
password = ""
if length > 0:
while loop != length:
rand = random.randint(0,61)
password = password + stack[rand]
loop = loop + 1
print password
else:
print "Error, make sure you only enter positive numbers."
sleep(0.5)
print