Added a faster method of randomizing