Fixed RNG generation.  Multi-threading now working.