Using this (awesome) library, I've written a slice shuffle generator again and again for some of my use cases.
I'm currently working on a merge request that integrates that to the gopter.Gen package along with tests.
It's using Fisher-Yates shuffle algorithm so it shouldn't be too long to run, and give a properly random result. I've considered a reducer but I'm not sure it's necessary, all my tests using this gave good enough feedback without it.
Let me know if there's something I haven't thought through, I'll be sending the MR whenever I've finished writing it.
Using this (awesome) library, I've written a slice shuffle generator again and again for some of my use cases.
I'm currently working on a merge request that integrates that to the
gopter.Genpackage along with tests.It's using Fisher-Yates shuffle algorithm so it shouldn't be too long to run, and give a properly random result. I've considered a reducer but I'm not sure it's necessary, all my tests using this gave good enough feedback without it.
Let me know if there's something I haven't thought through, I'll be sending the MR whenever I've finished writing it.