i’ve made some kind of encode function that uses an array with 62 characters (a-z,A-Z,0-9)
then i use a random number to access one of these.
but if i use it, it returns way to much letters and i want as much letters as numbers (which is also logical since the chance on a number is 10/62 versus 50/62)
could someone tell me some function that generates a random number but that has a higher chance to get a value between 52-62 then a value below 52.
i’ve made some kind of encode function that uses an array with 62 characters
Share
This gives you a 50/50 chance of getting a digit: