Turns out Doom was randomly generated all this time and you never knew

Okay, so the original Doom isn't a procedurally generated rogue-like, obviously. But it does use a 'random number lookup table' to control certain aspects of the game. Jonathan Michael Thomas Dowland, a senior Software Engineer, played with it to see what happened.

This, according to Jonathan, is how it works, using the original version of the game: "Doom has a fixed 256-value random number table from which numbers are pulled by aspects of the game logic". Apparently, it uses this table to save system resources, but by hacking it you can replace the values with a fixed number (he chose either 0x00 or 0xFF) and strip out all variation to create an "entirely deterministic" Doom.

[Update: Jonathan's made a video showing what happens if you replace all the random numbers with zeros]

So what does it affect? Well, for starters, the famous screen melting flourish you get between levels becomes a plain line wipe because the randomness was generated using figures from the table. Also relying on the variation introduced by the table are the noises monsters make as they die. With only a single value only a single sound is played per creature category. Other noises are also affected, depending on the replacement number, so that creatures either never make an idle noise, like breathing, or they do it all the time, creating what Jonathan calls "a sort-of monster drone" that's "quite overwhelming with even a small pack of monsters". Another area where different numbers have different affects involves strobing lights within levels. In one case the lights are effectively deactivated, and in the other they "strobe like crazy".

Almost every critical area of the game seems to be affected by tampering with the random table. Weapon spread is eliminated, making shotguns and chain guns fire like sniper rifles (but revealing that damage is a function of spread so they don't become even more deadly). Monsters attack more frequently for example, or stick to one attack regardless of conditions - a ranged attack even at close proximity is the example given. Creatures sometimes ignore the player totally, walking in circles while the in-fighting - triggered if one bad guy accidentally hits another - becomes something that that happens all the time, or never at all. Percentage-based stuff also goes nuts, with Jonathan's example of super hell slime's 2.6% chance of damage while wearing a radiation suit being rounded up to 100%.

CATEGORIES
Leon Hurley
Managing editor for guides

I'm GamesRadar's Managing Editor for guides, which means I run GamesRadar's guides and tips content. I also write reviews, previews and features, largely about horror, action adventure, FPS and open world games. I previously worked on Kotaku, and the Official PlayStation Magazine and website. 

Latest in Action
Players in GTA Online running businesses and playing missions
GTA publisher is suing a GTA Online website that lets you buy hacked accounts, which "risks upending the GTA 5 player experience"
Death Stranding 2 trailer showing Sam shooting at an enemy
Hideo Kojima aims to beat the ‘walking simulator’ allegations as Death Stranding 2 releases combat-heavy trailer
Death Stranding 2
Hideo Kojima is still hung up on his ex, as Death Stranding 2 features a Metal Gear Solid doppelganger the director says is the spitting image of Solid Snake
God of War Ragnarok
God of War turns 20 this month, but before you get too excited, Santa Monica Studio says "there are no planned announcements" at its celebratory panel
Death Stranding 2 Collector's Edition
Hideo Kojima reveals Death Stranding 2: On the Beach release date, and the Collector's Edition includes exactly what I predicted it would
Former Xbox boss says GTA: San Andreas and its infamously NSFW Hot Coffee minigame "signified a maturing of the industry" and put games "on par with movies and music"
Latest in News
Monster Hunter Wilds trailer screenshot showing a young woman with long blonde hair tied back into a ponytail smiling slightly, pumping her left fist in the air
Monster Hunter Wilds' Gemma actor requests "tips for beginners" from fans of Capcom's action RPG as it's the "first MH game that I've ever played"
Doom: The Dark Ages screenshot
Doom director claims The Dark Ages can be beaten without using a gun, but "the game's not necessarily built to do that"
Giancarlo Esposito in The Electric State
The Electric State may be the Russo brothers' most challenging VFX project yet, but stars Stanley Tucci and Giancarlo Esposito say it's one of the easiest films they’ve ever done
The Last of Us season 2 trailer shows spores
The Last of Us season 2 is bringing in one of the biggest game omissions from season 1 – and the showrunners say it's for a "good reason"
Daredevil: Born Again
Vincent D'Onofrio responds to a fan who thinks Daredevil: Born Again has "ruined" Kingpin: "Thanks for the support dumbass"
Players in GTA Online running businesses and playing missions
GTA publisher is suing a GTA Online website that lets you buy hacked accounts, which "risks upending the GTA 5 player experience"