A particle is bouncing randomly in a two-dimensional box. How far does it travel between bounces, on average?

Suppose the particle is initially at some random position in the box and is traveling in a straight line in a random direction and rebounds normally at the edges.

Particle in Box Solution

PHP Warning

lib/DbaDatabase.php:154: Warning: dba_optimize() [<a href='function.dba-optimize'>function.dba-optimize</a>]: You cannot perform a modification to a database without proper access

lib/DbaDatabase.php:134: Warning: dba_replace() [<a href='function.dba-replace'>function.dba-replace</a>]: You cannot perform a modification to a database without proper access