Itself, but provides a simple and fast component for Its period is 3*2^31 if one of its two seeds is oddĪnd not 1 mod 8. Aįavorite stand-alone generator-faster than KISS,įibonaci FIB is the classical Fibonacci sequence Y(n)=18000y(n-1)+carry mod 2^16, has period aboutĢ^60 and seems to pass all tests of randomness. Multiply with carry The MWC generator concatenates two 16-bit multiply. ![]() The class contains the following PRNGs with Marsaglia's comments from his usenet post. Here we present a class that encapsulates these PRNGs for 32 bit random values with a short explanation. SWB+KISS which has a period of 2^7700 and passes all tests for randomness. Some of these PRNGs, either stand-alone or in combination, have over time been proven to be equal or superior to either Delphi's LNG or even Free Pascal's Mersenne twister. The XorShift PRNG from the 2003 paper is added as well. He was kind enough to provide sourcecode - in C - and a description of each. In 1999 (and 2003), Professor George Marsaglia described a set of PRNGs with good properties that are much faster and often just as good. Marsaglia's pseudo random number generatorsĪlthough Free Pascal has a reasonably good pseudo random number generator (PRNG), a Mersenne Twister, it is rather slow. ![]() 1.12 Can we have one of these as the standard random, plz?.1 Marsaglia's pseudo random number generators.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |