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.
How do I generate truely random tests? If the seed can't change every run through it will always be possible to just make an array of the answers and bypass the problem. An idea I had was to tie the random seed to some attribute of the user's code, like number of characters or something. Alternately a pointer to the top of the stack might work but that's not possible in Python I don't think.
Should I change the name to something more descriptive?
I wrote a random input generator but am unsure how to test. In other examples I saw, the result has some property that can be tested against. Like testing an absolute value function would have a random input and the test would be whether the result is greater than zero. But with this problem I don't know of any property this can be tested against without linear algebra which isn't supported with codewars libraries. The only thing I can think would be to test the user solution against a known functioning one. Is there a way to do that?
What is a random test?