Modified jit function to simulate normal random numbers