The number is simple the CASE number from your dataset. This will count up with each respondent. You can format it with sprintf()
, adding leading zeros, e.g.
html('<p>Das ist die Nummer, die Sie brauchen: '.sprintf('%04d', caseNumber()).'</p>');
If you prefer other codes (especially codes that one cannot simply guess), please use one of the other options specified in the previous answer.