<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.explainxkcd.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=82.48.88.43</id>
		<title>explain xkcd - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.explainxkcd.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=82.48.88.43"/>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php/Special:Contributions/82.48.88.43"/>
		<updated>2026-07-10T18:04:18Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=221:_Random_Number&amp;diff=37398</id>
		<title>221: Random Number</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=221:_Random_Number&amp;diff=37398"/>
				<updated>2013-05-14T20:57:21Z</updated>
		
		<summary type="html">&lt;p&gt;82.48.88.43: /* Explanation */ die -&amp;gt; *dice&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 221&lt;br /&gt;
| date      = February 9, 2007&lt;br /&gt;
| title     = Random Number&lt;br /&gt;
| image     = random_number.png&lt;br /&gt;
| titletext = &amp;lt;nowiki&amp;gt;RFC 1149.5&amp;lt;/nowiki&amp;gt; specifies 4 as the standard IEEE-vetted random number.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
The comic specifies a function (in a {{w|C (programming language)|C-like}} syntax, perhaps {{w|C++}}) that, when called, returns a random number. Most functions of this form are random number ''generators'', implying that they return a range of ''different'' random numbers. Here, the programmer has instead created a function that just returns a ''single'' &amp;quot;random&amp;quot; number - one that the comment claims is chosen by rolling a dice. This function is essentially worthless, as it could simply be replaced by a &amp;quot;4&amp;quot; wherever it is used. (In fact, most modern compilers would do this automatically.)&lt;br /&gt;
&lt;br /&gt;
The {{w|IEEE}} is the &amp;lt;s&amp;gt;company&amp;lt;/s&amp;gt; organization responsible for maintaining a number of computer standards. An RFC, or {{w|Request for Comments}}, is a formal document put out to computing experts by {{w|IETF}} in the hopes of becoming a future standard. However, RFC 1149 was an {{w|April Fools' Day Request for Comments|April Fools' joke}}, suggesting that carrier pigeons be used to transmit Internet packets. (Ironically, although the RFC was written in 1990, a homing pigeon with a couple microSD cards tied to its leg might well be faster than your typical consumer Internet connection in the US today.) There is no &amp;lt;nowiki&amp;gt;RFC 1149.5&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
 int getRandomNumber()&lt;br /&gt;
 {&lt;br /&gt;
     return 4;     //chosen by fair dice roll.&lt;br /&gt;
                   //guaranteed to be random.&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
[[Category:Programming]]&lt;/div&gt;</summary>
		<author><name>82.48.88.43</name></author>	</entry>

	</feed>