Relaxation of ideal classical particles in a one‐dimensional box