What is the best way to generate random (pseudo-unique) ID that will include: 1) small chars 2) cap chars 3) digits with JavaScript (browser and node).
I know the solution with small chars register.
return ("00000" + (Math.random()*Math.pow(36,idLength) << 0).toString(36)).substr(-idLength);
I wonder if there is a like straightforward solution for ItXaK9gw like IDs.