Generate Access Code
- What is it? 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
- 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