Autofill form field

Is there a way to add a field in a registration form to be filled automatically for each registration, i need this field to use in an external app, this field may only contain letters ans numbers, and should be unique for each participant

Best regards,