They are assigned by the FCC at random, but some companies requested 'vanity' licenses the same as vanity phone numbers [[1-800-IRS-1040) and personalized vehicle plates.