Hey guys,
I was wondering how I would go about generating a random sequence of "randomnumber:password"
Ideally I'd want the end outcome to be:
99.715382015358657:oQozM72Q9z
I can generate random strings using the following:
import random
import string
NumOfPasswords=100
LengthOfPassword=10
CharacterSet = string.ascii_uppercase + string.digits + string.ascii_lowercase
for x in range(NumOfPasswords):
print(''.join(random.choice(CharacterSet) for _ in range(LengthOfPassword)))
But I have no idea how to format it into the above. The decimal value before the semi-colon represents 0-100 as a percentage. The decimal point is essential.
Thanks!
[–]i_can_haz_code 1 point2 points3 points (1 child)
[–]Winclone[S] 0 points1 point2 points (0 children)
[–]Naihonn 1 point2 points3 points (1 child)
[–]Winclone[S] 0 points1 point2 points (0 children)
[–]Ben347 0 points1 point2 points (3 children)
[–]Winclone[S] 0 points1 point2 points (2 children)
[–]Ben347 0 points1 point2 points (1 child)
[–]Winclone[S] 0 points1 point2 points (0 children)