This time your job is to write a simplified diffusion simulator. It may or may not be a terminal app (mine runs in a terminal).
For that purpose create a container (let’s say 40x80) and fill its left half with let’s say 150 molecules (like in Figure 19) that are sped by Brownian motion. See if the diffusion works, by comparing initial distribution of particles with the distribution after a few thousand cycles. To make it simpler you don’t have to handle the collisions between the molecules (assume they pass each other in the third dimension), but make sure they won’t go out of the container.
WARNING: While running the program in a terminal the screen may flicker. If that’s a problem (you may feel unwell) then you can skip this exercise. Remember that you should be able to abort the program (terminal application) at any time by pressing Ctrl-C.