For an example, see
https://phet.colorado.edu/sims/html/gas-properties/latest/gas-properties_en.html. The molecules are identical circles in 2-dimensional space. The initial conditions usually have the molecules bunched in a small region of the box. They then spontaneously disperse, increasing entropy. The simulation is strictly deterministic and probability is not involved. Since the algoritm instantiates only Newton's three deterministic laws of motion, the second-law dispersion can only be a consequence of these laws.
Which particular law is behind the dispersion? The third law, which relates to collisions, is clearly reversible. The second law, which relates to force, is not relevant since the ideal gas model assumes that no external forces or forces between the molecules exist. This leaves the first law, the law of inertia. The action of inertia is clearly visible as the source of the dispersion behind the second law.
If the simulation is reversed, the molecules will retrace their paths back to the initial conditions, temporarily decreasing entropy. However, if the simulation continues to run, the molecules will once again disperse, increasing entropy. The direction of increasing spontaneous dispersion is the direction of time.