Moved random stuff to the Random class