Particle Moving between Two Barriers

The collision times for a particle moving between two barriers are distributed exponentially, with a mean of three microseconds. If the particle starts at the right-hand barrier () and moves toward the left-hand barrier (), then simulate the collision process for 100 microseconds.

    
Variance for the slice distribution is 1:
Compare with the variance of a sample: