Uploaded: 31 Aug, 2007
Previous uploads by this submitter: 0

Author: Midboss

Downloads: 89

This is a simple class-based PRNG implementation for any MUD that compiles in G++. The main goal is to be able to create additional instances as needed for, say, procedural content, any time you need to set a seed value, without compromising the state of the generator used for common purposes such as skill checks and damage calculation. Of course, by using a global instance of the PRNG class, you can also use it for said common purposes.

Update: Commented the code better and removed some unnecessary typecasting.
Update: Fixed some errors in the test program with setting the seed value.