Geeks With Blogs

News

Google My Blog

Catch me at: The List!


My InstallScript Utility Belt My Amazon Wishlist
My Standard Disclaimer


Archives
Chris G. Williams Beware: I mix tech and personal interests here.
I recently posted the VB.NET Mersenne Twister code (rewritten from C# courtesy of Paul Vick) over at ILoveVB.NET.  If you haven't looked at it before, it's pretty neat stuff. It wasn't even possible in VB.NET 1.1 because of a lack of support for unsigned integers, with VB.NET 2.0 that problem went away.

If you don't know what a Mersenne Twister is, or why I would want one over, say, System.Random or System.Security.Cryptography.RNGCryptoServiceProvider then you may want to read this fine piece of writing first.

So there ya have it, if you're looking for some "true" random, and speed & security aren't big factors, go with the twister.

Posted here at: www.ILoveVB.NET Posted on Tuesday, February 19, 2008 3:05 PM Game Development , Heroic Adventure! | Back to top


Comments on this post: Mersenne Twister vb.net code

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Chris G. Williams | Powered by: GeeksWithBlogs.net