register random helper