After struggling with a race condition issue for an hour or two, I decided to make use of this wonderful unpredictability that is shared resource mutation.
Here's the (summarized) algorithm.
more here.........https://github.com/dasmithii/RCRand
Here's the (summarized) algorithm.
more here.........https://github.com/dasmithii/RCRand