Random number generator

NetHack uses a high quality random number generator (RNG) to determine the outcome of in-game events. Probabilities are expressed in d notation, an homage to Dungeons and Dragons.

Anthropomorphisation
The RNG is sometimes referred to as the Random Number God. The RNG plays a pivotal role in determining the fate of all characters, and is sometimes considered the deadliest enemy in the game, despite the fact that expert players such as marvin have demonstrated that nearly every game is ascendable.