Prime Number Generator
|
I made this webpage, because I wanted to find a way to generate a "reasonably"
random and unique number calculated from x, y, and z coordinates which
will always be the same every time I calculate it. The algorithm I decided
on was (((x+prime1)*(y+prime2)%65536)*(z+prime3) % 65536)). This will
give me a semi-random 16-bit number which I can consistently derive from
the same x,y,and z coordinates.
Specifically, I wanted a "random" mixture of numbers around the origin,
with different
I figure that for: prime1 = 2083, prime2= 12721, and prime3 = 25799,
I could be assured of a random number.
|