Skip to content

Comment on The random number generator of DOOMparent

Comments

All PRNGs all just repeating sequences. Usually they are just longer and use clever math to generate the next term of the sequence instead of just storing it in array. But always it repeats itself eventually.

For Doom speed was more important than length of the sequence so they just made it a lookup table.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.