faster randn by separating out unlikely branch in a function

All credits to @ViralBShah (cf. #8941 and #9126).
This change probably allows better inlining.