Got rid of old test code
Implement sample solution code for random thread selection for edge case