Fixed issue with nrrand