Generate a random string
1 function randomString() {
2 const mathRandom = Math.random().toString(16).slice(2, 7);
3 const dateRandom = Date.now().toString().slice(7);
4
5 return mathRandom + dateRandom;
6 }
7
8 randomString(); // 'a35cb487380'