endpoint & rand Gen