Moved seed initialization into rrand().