Portable Random Number Generator
Category:Dates and Math
Version Compatibility: Visual Basic 6, Visual Basic 5
Here's a portable random number generator (PRNG) that uses a similar mechanism to VB's PRNG. What's the point, you may ask, that you can port this to other languages and still create the same series of numbers with the same seed independant of operating system or programming language. Great for creating keys, mild encryption, hashing, or anything else that requires such functionality. This can easily be rewritten in .NET with three minor changes.
Instructions: Copy the declarations and code below and paste directly into your VB project.