Fix get random num script.