Generating a unique random referral code for each customer signing up

New Member
1 0 0

Hi Team.


I am new to this but have working knowledge of HTML CSS JavaScript and a bit of liquid now. However, I am unable to find any topic or post on this. This is what I want to do.

Action - Customer Sign up.

What do I want to do? - Assign and store a unique referral code to the customer and store it somewhere to recall for my referral page. 


Let me know if someone can help me with this.