Predefined Calculation: Generate Access Code

Summary

This formula will return a random access code of 9 alphanumeric characters.

Inputs

This logic has no inputs.

Return values

The formula returns a alphanumeric string separated into three blocks by a hyphen e.g. VIL-DvT-JeS

Formula Logic

  1. The formula takes a the string "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" repeats its 5 times
  2. The string is then shuffled using str_shuffle
  3. And the first 3 characters of the string are taken
  4. Steps 1 - 3 are repeatable for the remaining 2 blocks, with the resulting code returned

results matching ""

    No results matching ""