Update randp.m