14-2 Generating Exponentially-Distributed Random Numbers

This program demonstrates two algorithms for generating exponentially-distributed random numbers.

To run the demo:

  1. Choose an algorithm:
    • Logarithm
    • von Neumann
  2. Press the Run button to animate the algorithm.
  3. Press the Pause button to pause the algorithm, and the Run button to resume it.
  4. To choose another algorithm, press the Pause button and the Reset button, then choose the algorithm.

The original Java Applets do not run in modern browsers, but you can download the Java code and run it locally on your desktop. Check back for JavaScript and Python versions - coming soon!


Download Demos in Java