title: random BOOLs in an efficient way for cocos2d
body: <p>According to <a href="http://cocos2d-central.com/topic/107-generating-random-numbers-in-an-efficient-way/page__view__findpost__p__447" rel="noreferrer">Steffen's post</a> this is an efficient way to generate random <code>BOOL</code>s in cocos2d</p>
  
  <pre><code>+(BOOL) getYesOrNo
  {
     return (CCRANDOM_0_1() &lt; 0.5f);
  }
  </code></pre>
  
  <p>but how do I set a range for this? (e.g. 0 - 29 is the interval and 5 ones <code>BOOL</code> <code>=</code> <code>NO</code>, 25 ones <code>BOOL</code> <code>=</code> <code>YES</code> )</p>