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.
Many thanks for your contribution, reviewed and approved :D
Many thanks for your contribution; reviewed and approved :D
To your first question, yes; as long as the user also changes then name of the function the file returns. If that's not clean enough, I could change it so that there is no function name (the file would simply return an anonymous function).
And, of course, I've changed the random seed as you've suggested.
Happy to help
@unonu,
Many thanks for taking the time to translate my Kata into Lua - your effort and contributions are highly appreciated:
Before I approve this translation, I would like to confirm one thing and propose one minor change:
34567865643
) which means that the pseudo-random numbers (and thus the "random" strings) generated will be the same each time. May you please change it tomath.randomseed(os.time())
instead so the random test cases are actually different each time (source: https://www.lua.org/pil/18.html)?Thanks a lot :)
Cheers,
donaldsebleung