update generate random number for uniqueName