title: Chance.js and PHP game scripting
body: <p>I'm scripting a small RP game Text base. I found a site with chance.js script free to use but I am trying to find out how to use it within PHP.</p>
  
  <p>This is the code they tell you to use:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;script src="chance.js"&gt;&lt;/script&gt;
    &lt;script&gt;
       console.log(chance.bool());
    &lt;/script&gt;
  </code></pre>
  
  <p>But every time I put it in my PHP it blacks out everything and does not work. I have tried to search everywhere to try and find out why but found nothing. A lot of sites say I can't use JavaScript in PHP, but I know that can't be true. </p>
  
  <p>Please, someone point me in the right direction...   :)</p>
  
  <p>P.S. the replay with be true or false <a href="http://chancejs.com/" rel="nofollow">http://chancejs.com/</a> &lt;&lt;&lt; is the site it's from.</p>