by hangonhn · 3y ago · 0 comments
If random is picked such that it's in the range of alphabet (i.e. 0 to 25), then the bias should not exist, right? Is that what he's alluding to? Thanks in advance.
More explanation here: https://stackoverflow.com/questions/10984974/why-do-people-s...
crypto.getRandomValues(new Uint8Array(1))[0] % 32
And then filter out the value if it falls outside of your range (0-25).