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.
Assume that you creating string from 10 random characters.
The chance of generating this string is 1 / 10 ** 6 = 0.000001 = 0.0001 %.
So we have 3000 test cases. As you see, the chance of generating two exactly equal strings is less then 1 %.
It will be better to make user use two functions: one to generate string and other to check if there is already such string and calling string generator untill new uniqeu string will be created.
So you can simulate the string to validator function if the string already was.
no longer
is everything okay now?