By Daniel on
31.03.2009
I wanted to create random-looking URL-Parameters similar to the way YouTube does it. There you don't have a movie number in the URL, but rather something that looks pretty strange like http://www.youtube.com/watch?v=uaSsAjdF-Bg, so the uaSsAjdF-Bg is somehow a number replacement. Here's what I discovered
An article explaining the .net randomizer, and the way you would retrieve a number after the other. I'll have to find out how many numbers are generated till it repeats, and if I can use the last random number as a seed to ensure I stay in the sequence.
A Wikipedia article explaining the Mersenne Twister, a algorithm that returns a heck of a lot of random numbers without repeating for a very, very long time.
A open source / free .net class with a bunch of different randomizers, including fibonaci and mersenne twister.
Another Marsenne Twister code for .net
The .net Framework documentation explaining the...
Read More »