Improved mating randomness, added comments