angular andomly generated alphanumeric 24 characters code example
Example 1: random alphabet javascript
Math.random().toString(36).substr(2, 5);
Example 2: how to generate random string in javascript
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);