Fix new random logic.