<p>It's worth taking a look at <code>math::Random()</code> and <code>math::RandomSeed()</code> to get random numbers instead.  I can't speak to thread-safety (I know it was something <a href="https://github.com/stephentu" class="user-mention">@stephentu</a> thought about a while ago but I can't remember the outcome), but it would be nice to keep all of our RNG needs in one place.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/603#issuecomment-208662484">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFMa7ELOOReFIESp-4Lb3G0DeWs2Gks5p2vx5gaJpZM4H_54U.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/603#issuecomment-208662484"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>