Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
yeah i did this too sorta forgot that .replace existed
nice !!
Needs more factories
This comment is hidden because it contains spoiler information about the solution
lol
This is a frequent solution for more complicated strings
found the java dev
nice solution
I see you found a working solution in the meantime :-)
I am using the full character set, not using a limited method, and using random.choice to select both the type (upper, lower, or num) and the selection within that group.
Still not working.
Yes, the description says to create passwords with 6-20 chars. You are creating passwords with 8-20 chars.
It means that your passwords are not random "enough": it usually happens if you're not using the full character set (there is a check to see if all 26+26+10 characters are present); or you use a limited method, like "1 uppercase + 1 lowercase + random digits".
For the later, the characters used in the generated passwords are counted, and if any character occurs more than 50% of the cases, then the test fails. Based on my tests, the normal appearance rate is around 35%, so there is quite a large margin.
update: I updated the description with this info.
I believe this means that you're having too restrictive of a length of passwords - should be between 6 and 20, yours look like they are between 8 and 20.
what i do wrong?
Generating 10000 passwords ...
Testing validity ...
✔ Test Passed
Testing for password lengths ...
✘ Passwords lengths are not different enough! (8-20 chars)
Testing for inequality ...
✔ Test Passed
Testing for character count ...
✔ Test Passed