Predefined Calculation: Generate Access Code
This formula will return a random access code of 9 alphanumeric characters.
This logic has no inputs.
The formula returns a alphanumeric string separated into three blocks by a hyphen e.g. VIL-DvT-JeS
- The formula takes a the string "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" repeats its 5 times
- The string is then shuffled using str_shuffle
- And the first 3 characters of the string are taken
- Steps 1 - 3 are repeatable for the remaining 2 blocks, with the resulting code returned