A really simple simulator of many particles in a box, with elastic collisions with the walls and in-between particles. The plot that is generated of the velocities resembles the general Maxwell-Boltzmann distribution. My program creates a simple plot of 5000 particles colliding in a box, and it looks like this:
After letting it run for a few minutes, I then have an histogram generated which displays in bins the magnitude of the velocities of the particles,
and when this is compared to the actual distribution, one sees,
They look roughly similar, this program could obviously be improved. One spot is to have physically consistent values reached ,for say the velocity distribution values.