javascript select a set number of random characters from an array 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);