<h1 dir="auto">Summary</h1>
<p dir="auto">This isn't necessarily a <em>bug</em>, but it's an interesting find. It's probably even intentional.</p>
<p dir="auto">Anyway, instead of rewriting the <code class="notranslate">Math.floor(Math.random() * (1 - 3 + 1)) + 1</code> code three times, I wanted to try writing a custom function to generate the numbers:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function generateRandomNumber(min, max) {
    return Math.floor(Math.random() * (min - max + 1)) + 1;
}

slotOne = generateRandomNumber(1, 3);
..."><pre class="notranslate"><code class="notranslate">function generateRandomNumber(min, max) {
    return Math.floor(Math.random() * (min - max + 1)) + 1;
}

slotOne = generateRandomNumber(1, 3);
...
</code></pre></div>
<p dir="auto">The result is the same, but the last test is marked wrong because I didn't retype the random number generation line. No big deal! Just thought I would make mention of it.</p>
<h1 dir="auto">Code</h1>
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-create-a-javascript-slot-machine" rel="nofollow">Waypoint: Create a JavaScript Slot Machine</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.93 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;script&gt;
  function runSlots(){
    var slotOne;
    var slotTwo;
    var slotThree;

    var images = [&quot;http://i.imgur.com/9H17QFk.png&quot;, &quot;http://i.imgur.com/9RmpXTy.png&quot;, &quot;http://i.imgur.com/VJnmtt5.png&quot;];

    // Only change code below this line.
    function generateRandomNumber(min, max) {
      return Math.floor(Math.random() * (min - max + 1)) + 1;
    }
    slotOne = generateRandomNumber(1, 3);
    slotTwo = generateRandomNumber(1, 3);
    slotThree = generateRandomNumber(1, 3);

    // Only change code above this line.

    $(&quot;.logger&quot;).html(&quot;&quot;);
    $(&quot;.logger&quot;).html(&quot;Not A Win&quot;)

    if(slotOne !== undefined &amp;&amp; slotTwo !== undefined &amp;&amp; slotThree !== undefined){
      $(&quot;.logger&quot;).html(slotOne + &quot; &quot; + slotTwo + &quot; &quot; + slotThree);
    }
    return [slotOne, slotTwo, slotThree];
  }

  $(document).ready(function(){
     $(&quot;.go&quot;).click(function(){
       runSlots();
     });
   });
&lt;/script&gt;

&lt;div&gt;
 &lt;div class = &quot;container inset&quot;&gt;
   &lt;div class = &quot;header inset&quot;&gt;
     &lt;img src=&quot;https://s3.amazonaws.com/freecodecamp/freecodecamp_logo.svg.gz&quot; alt=&quot;learn to code javascript at Free Code Camp logo&quot; class=&quot;img-responsive nav-logo&quot;&gt;
     &lt;h2&gt;FCC Slot Machine&lt;/h2&gt;
   &lt;/div&gt;
   &lt;div class = &quot;slots inset&quot;&gt;
     &lt;div class = &quot;slot inset&quot;&gt;

     &lt;/div&gt;
     &lt;div class = &quot;slot inset&quot;&gt;

     &lt;/div&gt;
     &lt;div class = &quot;slot inset&quot;&gt;

     &lt;/div&gt;
   &lt;/div&gt;
   &lt;br/&gt;
   &lt;div class = &quot;outset&quot;&gt;
     &lt;button class = &quot;go inset&quot;&gt;
       Go
     &lt;/button&gt;
   &lt;/div&gt;
   &lt;br/&gt;
   &lt;div class = &quot;foot inset&quot;&gt;
     &lt;span class = &quot;logger&quot;&gt;&lt;/span&gt;
   &lt;/div&gt;
 &lt;/div&gt;
&lt;/div&gt;

&lt;style&gt;
 .container {
   background-color: #4a2b0f;
   height: 400px;
   width: 260px;
   margin: 50px auto;
   border-radius: 4px;
 }
 .header {
   border: 2px solid #fff;
   border-radius: 4px;
   height: 55px;
   margin: 14px auto;
   background-color: #457f86
 }
 .header h2 {
   height: 30px;
   margin: auto;
 }
 .header h2 {
   font-size: 14px;
   margin: 0 0;
   padding: 0;
   color: #fff;
   text-align: center;
 }
 .slots{
   display: flex;
   background-color: #457f86;
   border-radius: 6px;
   border: 2px solid #fff;
 }
 .slot{
   flex: 1 0 auto;
   background: white;
   height: 75px;
   margin: 8px;
   border: 2px solid #215f1e;
   border-radius: 4px;
 }
 .go {
   width: 100%;
   color: #fff;
   background-color: #457f86;
   border: 2px solid #fff;
   border-radius: 2px;
   box-sizing: none;
   outline: none!important;
 }
 .foot {
   height: 150px;
   background-color: 457f86;
   border: 2px solid #fff;
 }

 .logger {
   color: white;
   margin: 10px;
 }

 .outset {
   -webkit-box-shadow: 0px 0px 15px -2px rgba(0,0,0,0.75);
   -moz-box-shadow: 0px 0px 15px -2px rgba(0,0,0,0.75);
     box-shadow: 0px 0px 15px -2px rgba(0,0,0,0.75);
 }

 .inset {
   -webkit-box-shadow: inset 0px 0px 15px -2px rgba(0,0,0,0.75);
   -moz-box-shadow: inset 0px 0px 15px -2px rgba(0,0,0,0.75);
   box-shadow: inset 0px 0px 15px -2px rgba(0,0,0,0.75);
 }
&lt;/style&gt;
"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span>
  <span class="pl-k">function</span> <span class="pl-en">runSlots</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
    <span class="pl-k">var</span> <span class="pl-s1">slotOne</span><span class="pl-kos">;</span>
    <span class="pl-k">var</span> <span class="pl-s1">slotTwo</span><span class="pl-kos">;</span>
    <span class="pl-k">var</span> <span class="pl-s1">slotThree</span><span class="pl-kos">;</span>

    <span class="pl-k">var</span> <span class="pl-s1">images</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s">"http://i.imgur.com/9H17QFk.png"</span><span class="pl-kos">,</span> <span class="pl-s">"http://i.imgur.com/9RmpXTy.png"</span><span class="pl-kos">,</span> <span class="pl-s">"http://i.imgur.com/VJnmtt5.png"</span><span class="pl-kos">]</span><span class="pl-kos">;</span>

    <span class="pl-c">// Only change code below this line.</span>
    <span class="pl-k">function</span> <span class="pl-en">generateRandomNumber</span><span class="pl-kos">(</span><span class="pl-s1">min</span><span class="pl-kos">,</span> <span class="pl-s1">max</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
      <span class="pl-k">return</span> <span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">floor</span><span class="pl-kos">(</span><span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">random</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">*</span> <span class="pl-kos">(</span><span class="pl-s1">min</span> <span class="pl-c1">-</span> <span class="pl-s1">max</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span>
    <span class="pl-s1">slotOne</span> <span class="pl-c1">=</span> <span class="pl-en">generateRandomNumber</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-s1">slotTwo</span> <span class="pl-c1">=</span> <span class="pl-en">generateRandomNumber</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-s1">slotThree</span> <span class="pl-c1">=</span> <span class="pl-en">generateRandomNumber</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

    <span class="pl-c">// Only change code above this line.</span>

    <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">".logger"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">html</span><span class="pl-kos">(</span><span class="pl-s">""</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">".logger"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">html</span><span class="pl-kos">(</span><span class="pl-s">"Not A Win"</span><span class="pl-kos">)</span>

    <span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">slotOne</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">slotTwo</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">slotThree</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
      <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">".logger"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">html</span><span class="pl-kos">(</span><span class="pl-s1">slotOne</span> <span class="pl-c1">+</span> <span class="pl-s">" "</span> <span class="pl-c1">+</span> <span class="pl-s1">slotTwo</span> <span class="pl-c1">+</span> <span class="pl-s">" "</span> <span class="pl-c1">+</span> <span class="pl-s1">slotThree</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span>
    <span class="pl-k">return</span> <span class="pl-kos">[</span><span class="pl-s1">slotOne</span><span class="pl-kos">,</span> <span class="pl-s1">slotTwo</span><span class="pl-kos">,</span> <span class="pl-s1">slotThree</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
  <span class="pl-kos">}</span>

  <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
     <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">".go"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
       <span class="pl-en">runSlots</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
     <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
   <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span>

<span class="pl-kos">&lt;</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span>
 <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">container inset</span>"<span class="pl-kos">&gt;</span>
   <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">header inset</span>"<span class="pl-kos">&gt;</span>
     <span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">https://s3.amazonaws.com/freecodecamp/freecodecamp_logo.svg.gz</span>" <span class="pl-c1">alt</span>="<span class="pl-s">learn to code javascript at Free Code Camp logo</span>" <span class="pl-c1">class</span>="<span class="pl-s">img-responsive nav-logo</span>"<span class="pl-kos">&gt;</span>
     <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span>FCC Slot Machine<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span>
   <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span>
   <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">slots inset</span>"<span class="pl-kos">&gt;</span>
     <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">slot inset</span>"<span class="pl-kos">&gt;</span>

     <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span>
     <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">slot inset</span>"<span class="pl-kos">&gt;</span>

     <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span>
     <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">slot inset</span>"<span class="pl-kos">&gt;</span>

     <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span>
   <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span>
   <span class="pl-kos">&lt;</span><span class="pl-ent">br</span>/&gt;
   <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">outset</span>"<span class="pl-kos">&gt;</span>
     <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span> = "<span class="pl-s">go inset</span>"<span class="pl-kos">&gt;</span>
       Go
     <span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span>
   <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span>
   <span class="pl-kos">&lt;</span><span class="pl-ent">br</span>/&gt;
   <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">foot inset</span>"<span class="pl-kos">&gt;</span>
     <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span> = "<span class="pl-s">logger</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span>
   <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span>
 <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span>
<span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span>

<span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span>
 .<span class="pl-c1">container</span> {
   <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>4a2b0f</span>;
   <span class="pl-c1">height</span><span class="pl-kos">:</span> <span class="pl-c1">400<span class="pl-smi">px</span></span>;
   <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">260<span class="pl-smi">px</span></span>;
   <span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">px</span></span> auto;
   <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">4<span class="pl-smi">px</span></span>;
 }
 .<span class="pl-c1">header</span> {
   <span class="pl-c1">border</span><span class="pl-kos">:</span> <span class="pl-c1">2<span class="pl-smi">px</span></span> solid <span class="pl-pds"><span class="pl-kos">#</span>fff</span>;
   <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">4<span class="pl-smi">px</span></span>;
   <span class="pl-c1">height</span><span class="pl-kos">:</span> <span class="pl-c1">55<span class="pl-smi">px</span></span>;
   <span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">14<span class="pl-smi">px</span></span> auto;
   <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>457f86</span>
 }
 .<span class="pl-c1">header</span> <span class="pl-ent">h2</span> {
   <span class="pl-c1">height</span><span class="pl-kos">:</span> <span class="pl-c1">30<span class="pl-smi">px</span></span>;
   <span class="pl-c1">margin</span><span class="pl-kos">:</span> auto;
 }
 .<span class="pl-c1">header</span> <span class="pl-ent">h2</span> {
   <span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">14<span class="pl-smi">px</span></span>;
   <span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span>;
   <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">0</span>;
   <span class="pl-c1">color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>fff</span>;
   <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center;
 }
 .<span class="pl-c1">slots</span>{
   <span class="pl-c1">display</span><span class="pl-kos">:</span> flex;
   <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>457f86</span>;
   <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">6<span class="pl-smi">px</span></span>;
   <span class="pl-c1">border</span><span class="pl-kos">:</span> <span class="pl-c1">2<span class="pl-smi">px</span></span> solid <span class="pl-pds"><span class="pl-kos">#</span>fff</span>;
 }
 .<span class="pl-c1">slot</span>{
   <span class="pl-c1">flex</span><span class="pl-kos">:</span> <span class="pl-c1">1</span> <span class="pl-c1">0</span> auto;
   <span class="pl-c1">background</span><span class="pl-kos">:</span> white;
   <span class="pl-c1">height</span><span class="pl-kos">:</span> <span class="pl-c1">75<span class="pl-smi">px</span></span>;
   <span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">8<span class="pl-smi">px</span></span>;
   <span class="pl-c1">border</span><span class="pl-kos">:</span> <span class="pl-c1">2<span class="pl-smi">px</span></span> solid <span class="pl-pds"><span class="pl-kos">#</span>215f1e</span>;
   <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">4<span class="pl-smi">px</span></span>;
 }
 .<span class="pl-c1">go</span> {
   <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">%</span></span>;
   <span class="pl-c1">color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>fff</span>;
   <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>457f86</span>;
   <span class="pl-c1">border</span><span class="pl-kos">:</span> <span class="pl-c1">2<span class="pl-smi">px</span></span> solid <span class="pl-pds"><span class="pl-kos">#</span>fff</span>;
   <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">2<span class="pl-smi">px</span></span>;
   <span class="pl-c1">box-sizing</span><span class="pl-kos">:</span> none;
   <span class="pl-c1">outline</span><span class="pl-kos">:</span> none<span class="pl-k">!important</span>;
 }
 .<span class="pl-c1">foot</span> {
   <span class="pl-c1">height</span><span class="pl-kos">:</span> <span class="pl-c1">150<span class="pl-smi">px</span></span>;
   <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-c1">457</span>f86;
   <span class="pl-c1">border</span><span class="pl-kos">:</span> <span class="pl-c1">2<span class="pl-smi">px</span></span> solid <span class="pl-pds"><span class="pl-kos">#</span>fff</span>;
 }

 .<span class="pl-c1">logger</span> {
   <span class="pl-c1">color</span><span class="pl-kos">:</span> white;
   <span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>;
 }

 .<span class="pl-c1">outset</span> {
   <span class="pl-c1">-webkit-box-shadow</span><span class="pl-kos">:</span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">15<span class="pl-smi">px</span></span> <span class="pl-c1">-2<span class="pl-smi">px</span></span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.75</span>);
   <span class="pl-c1">-moz-box-shadow</span><span class="pl-kos">:</span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">15<span class="pl-smi">px</span></span> <span class="pl-c1">-2<span class="pl-smi">px</span></span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.75</span>);
     <span class="pl-c1">box-shadow</span><span class="pl-kos">:</span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">15<span class="pl-smi">px</span></span> <span class="pl-c1">-2<span class="pl-smi">px</span></span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.75</span>);
 }

 .<span class="pl-c1">inset</span> {
   <span class="pl-c1">-webkit-box-shadow</span><span class="pl-kos">:</span> inset <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">15<span class="pl-smi">px</span></span> <span class="pl-c1">-2<span class="pl-smi">px</span></span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.75</span>);
   <span class="pl-c1">-moz-box-shadow</span><span class="pl-kos">:</span> inset <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">15<span class="pl-smi">px</span></span> <span class="pl-c1">-2<span class="pl-smi">px</span></span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.75</span>);
   <span class="pl-c1">box-shadow</span><span class="pl-kos">:</span> inset <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">15<span class="pl-smi">px</span></span> <span class="pl-c1">-2<span class="pl-smi">px</span></span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.75</span>);
 }
<span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-create-a-javascript-slot-machine" rel="nofollow">http://freecodecamp.com/challenges/waypoint-create-a-javascript-slot-machine</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">The example in the first screenshot should pass, but fails because the last test checks to see if the random number formula appears exactly three times.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2019665/9375333/2d56f996-46b4-11e5-9d0a-3ba1f1f588c3.png"><img src="https://cloud.githubusercontent.com/assets/2019665/9375333/2d56f996-46b4-11e5-9d0a-3ba1f1f588c3.png" alt="screen shot 2015-08-19 at 8 51 21 pm" style="max-width: 100%;"></a></p>
<p dir="auto">It's more efficient to write a single function that returns a random number and then have each variable call that function.</p>
<p dir="auto">In fact, it doesn't matter where the formula appears, as long as it appears three times. Here, I passed by repeating it twice in comments.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2019665/9375389/e201c1be-46b4-11e5-87c8-9a63dd181f7c.png"><img src="https://cloud.githubusercontent.com/assets/2019665/9375389/e201c1be-46b4-11e5-87c8-9a63dd181f7c.png" alt="screen shot 2015-08-19 at 8 56 47 pm" style="max-width: 100%;"></a></p>