on-internet
← Community

generate random six character base 36 string

Stack Overflow ·

I need to generate a random six character base 36 string. I am using below two packages, but it not always returning the six characters. const seed = require('random-seed').create(); const bases = require('bases') console.log(bases.toBase36(seed(10000000, 99999999)))

Comments

Sign in or sign up to comment and upvote.

No comments yet.