Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    Should I change the name to something more descriptive?

  • Custom User Avatar

    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?

  • Custom User Avatar

    What is a random test?