Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Random generation of enums never includes the last enum-value #79
So if I wish to generate a random enum using this code ...
the result will be random, but it will NEVER include the last enum value.
My initial reason was wrong, which was why I crossed out the convo below but didn't delete it for future reference, etc.
Ok - so it seems like the code looks ok, but it still errors. So, heres a repo which can reproduce the errors: