title: Java exponential distribution
body: <p>I need to find a formula for exponential distribution of probability, but I don´t know how to find it. This formula has to have powerful statistical properties (it can´t throw away any result from random to keep indistructed seek of random instance).</p>
  <p>I am trying to find formula, which will work in a method like this:</p>
  <pre><code>rand.getNextDoubleExpDistrib();
  </code></pre>
  <p>I have this code for now, but according to &quot;input analyser&quot;, it doesn´t work correctly</p>
  <pre><code>public double getNext() {
      return -lampda * Math.log(rand.nextDouble());
  }
  </code></pre>