Here is an example using the GAME Engine IPO recording feature.
You could modify this scene by swapping fruit meshes for the numbers and a Bowl for the cube below.
USAGE:
Open scene.
Move mouse over 3D window.
Press the P-Key and wait for the simulation to run.
Press ESC to stop simulation.
Press play to view recorded animation.