Using Discrete Logarithms to Randomize a Million Integers

Using Discrete Logarithms to Randomize a Million Integers

For simplicity’s sake, my use of “numbers” here will mean positive integers (counting, or natural numbers). On a recent project, I assigned myself a fun-sounding ticket for generating unique, pseudorandom 6 digit codes from a web server. A naive...