title: java exponential random number generator
body: <p>I am trying to generate exponentially distributed random numbers btw 0-100. But when I use the below function my variables is assigned value more than even 200 but they should be btw 0-100. Anybody has any idea?</p>
  <p>here is my code;</p>
  <pre><code>Random rng3 = new Random(85);
  ExponentialGenerator exponentialGenerator = new ExponentialGenerator(0.012, rng3 ); 
  </code></pre>
  <p>and the general usage is ;</p>
  <pre><code>public ExponentialGenerator(NumberGenerator&lt;Double&gt; rate,
                              Random rng)
  </code></pre>
  <p><strong>Parameters:</strong></p>
  <blockquote>
  <p>rate - The rate (lambda) of the exponential distribution.</p>
  <p>rng - The source of randomness used to generate the exponential values.</p>
  </blockquote>