Random Number Generator: Difference between revisions

m
Added to Common Alg. category
[unchecked revision][unchecked revision]
No edit summary
m (Added to Common Alg. category)
Line 33:
 
I implemented a seed() function which adds a new seed to the end of the sequence, and erases the first one (the seeds are referred to as A, B, C and D). The rand() function just returns the sum of the seeds, and calls seed() with the result.
 
[[Category:Common Algorithms]]
Anonymous user