When the simulation starts, two different types of molecules start in opposite halves of a container. The molecules start moving in random directions, and they collide with each other and the walls of the container elastically so that the total kinetic energy of the system remains constant. As the molecules move and collide, they will mix.
This simulation shows ideal mixing.
The 400 molecules (200 of each colour) will start moving as soon as the page loads.
Watch the process of them mixing due to their random motion. You can reset the simulation using the button towards the bottom of the page.
The molecules may occasionally stick together, but should break apart again.