The Andersen thermostat is a proposal in molecular dynamics simulation for maintaining constant temperature conditions. It is based on periodic reassignment of the velocities of atoms or molecules. For each atom or molecule, the reassigned velocity is picked randomly according to Maxwell–Boltzmann statistics for the given temperature.