Fixed issue with randp.