The random seed wasn't being set correctly