I think I would have a link to ‘Get your referral code’
On that screen you have the randomiser component which updates the LIU with the code…only when that field is empty, this way the code can not change if they reload the screen.
In testing you can update the LIU from the randomiser component and display it all on one screen.