Generate random 6 characters based on input. Like I want to turn
lg36k but I want it to be consistant. Like whenever I feed
1028797107357892628 in, it should always spit out
j4w8p. Is this possible? (Without a database if possible.) I know how to generate random 6 characters but I dont know how to connect it with an input tbh. I would appreciate any help, thanks.
let rid = (Math.random() + 1).toString(36).substring(7);
Thanks everyone, solved my issue.
let seed = Number(1028797089741811773) let rid = seed.toString(36).substring(0,6) console.log(rid)
let seed = Number(1028797089741811773) let rid = seed.toString(36).substring(6) console.log(rid)