The referral code can't be created, instead it's assigned to your phone based on the Android ID and other identification numbers. You can find this referral code by accessing the Settings menu. It should be pretty obvious since the software is relying on its referrals in order to gain money from new sign-ups.