Made the random number choosing much faster by eliminating the need for resource locking.
removed all references to resource locking.  Implemented a cleanup for the random number generator.