Ron Mak @ Apropos Logic

ron@apropos-logic.com
Publications and books by Ronald Mak

Java Number Cruncher

Program 14-2

Generating Exponentially-Distributed Random Numbers

This applet 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.