make_id function

(Internal) Generate an ID variable