Random Number
Random number
Number 221
Date Feb. 9th 2007
Previous Philosophy
Next Small Talk

Random Number is the 221st xkcd comic.


The comic shows a Java/C or another C-style programming language code snippet.

The function always returns a constant number (4). This is not quite a random number.

A list of "random numbers" generated by this function would be:

4, 4, 4, 4, 4, 4…

However, the author claims that the constant "4" has been determined by a fair roll dice (which is a common example for random number generation) - and is thus suited as a random number.

Mouseover textEdit

"RFC 1149.5 specifies 4 as the standard IEEE-vetted random number."

See alsoEdit

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.