Skip to content

Comment on The random number generator of DOOM

Comments

Curious. Just eyeballing I see there's no 1, 2 and 222 are repeated as well as 36 and 136. There are probably more.

If there's a purpose behind the table being constructed with those omissions/repetitions it's lost on me.

Maybe they were chosen at random?

Looks like it by the note in the other comment by serf.

I had begun to wonder if certain values caused issues when used in code and it was deemed easier to just not get certain values back.

That's crazy talk though.

Naa, that sounds like something game developers totally would do.

http://bit.ly/1NxaZrC

A few numbers like 239 and 242 occur 3 times. And a bunch do not occur at all.

Obviously numbers like 222 and 136 are way more random than 1.

AboutSource Built by g1lg1l

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