Thank u wbcomdesigns for reply
but i don’t use woocommerce and i don’t need woocommerce , i just need random coupon or code for every new user , he must get his code by his email , and i need to make authontication if this coupon exist or not and who has this coupon .