jit randscale_n through a little helper function