<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Dice on Randy Lai</title>
    <link>https://randylai.info/tags/dice/</link>
    <description>Recent content in Dice on Randy Lai</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 14 Apr 2016 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://randylai.info/tags/dice/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Two cool things about dice!</title>
      <link>https://randylai.info/post/2016/dice/</link>
      <pubDate>Thu, 14 Apr 2016 00:00:00 +0000</pubDate>
      <guid>https://randylai.info/post/2016/dice/</guid>
      <description>&lt;p&gt;Just discover two cool things about dice,
Suppose we have two (fair) 6-sided dice, let $Y$ be the reminder of the product of the two numbers divided by 7, i.e., $Y = X1 \times X2 (\text{ mod } 7)$, guess what the distribution of $Y$ is? Uniform 1,&amp;hellip;, 6&lt;/p&gt;
&lt;p&gt;If it doesn&amp;rsquo;t surprise you, now consider two n-sided dice and repeat the above with $Y = X_1 \times X_2 (\text{ mod } n+1)$. Guess what values of $n$ will yield a uniform distribution? It turns out that the values of $n$ are prime numbers minus 1. (As 6 = 7-1 and 7 is a prime number, a regular 6-sided dice has this property).&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
