randN changed