generate radnom number from string code example
Example 1: generate random alphanumeric string javascript
Math.random().toString(36).substr(2, 6); //6 is the length of the string
Example 2: how to generate random string in javascript
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);