random-chars
A small JavaScript library for generating random symbols
- All browsers are supported
- No dependencies
Installation
npm
npm i random-chars --save
var randomChars = ;
Usage
randomChars;/* Result: 95ejI8y5TPG8gR5c */ randomChars; //lenght (default: 16)/* Result: zVx */ randomChars; //lenght and custom chars/* Result: aaaaaaahhhhahahh */ randomChars;/* Result: uIE */ randomChars;/* Result: ahaaahahhaaaaaha */ randomChars;/* Result: NqJTlKgoWeWSwGiNGfqstJqyOLiscrXpjsDh */ randomChars;/* Result: RMHGNDC3EO1CQYFH9MAYO52U3NYH2KUTPHMT */ randomChars;/* Result: mnroj1095flbyplmh4fo6r5p4tpbbbt1mdt4 */