Jump to content

Requests for technical support from the VASP team should be posted in the VASP Forum.

RANDOM SEED: Difference between revisions

From VASP Wiki
No edit summary
Schlipf (talk | contribs)
 
Line 17: Line 17:
{{NB|mind|If no {{TAG|RANDOM_SEED}} is set in the {{FILE|INCAR}} then the used value will depend on the system time. For example, in molecular dynamics simulations, initial velocities will be different each time {{VASP}} is executed (if {{TAG|TEBEG}} is used and no velocities are provided in the {{FILE|POSCAR}} file). Hence, the trajectories will diverge. If reproducibility is desired the {{TAG|RANDOM_SEED}} has to be set manually.}}
{{NB|mind|If no {{TAG|RANDOM_SEED}} is set in the {{FILE|INCAR}} then the used value will depend on the system time. For example, in molecular dynamics simulations, initial velocities will be different each time {{VASP}} is executed (if {{TAG|TEBEG}} is used and no velocities are provided in the {{FILE|POSCAR}} file). Hence, the trajectories will diverge. If reproducibility is desired the {{TAG|RANDOM_SEED}} has to be set manually.}}
== Related tags and articles ==
== Related tags and articles ==
{{TAG|IBRION}}, {{TAG|MDALGO}}
{{TAG|RANDOM_GENERATOR}}, {{TAG|IBRION}}, {{TAG|MDALGO}}


{{sc|RANDOM_SEED|Examples|Examples that use this tag}}
{{sc|RANDOM_SEED|Examples|Examples that use this tag}}

Latest revision as of 07:30, 18 June 2026

RANDOM_SEED = [integer][integer][integer]
Default: RANDOM_SEED = based on the system clock 

Description: RANDOM_SEED specifies the seed of the random-number generator (compile VASP with -Dtbdyn).


The random-number generator (RNG) generates a sequence of random numbers, which is initialized by the tag RANDOM_SEED. For example, in molecular dynamics simulations, the RNG can be used to initialize atomic velocities. Hence, the seed for the RNG influences the trajectory of a molecular dynamics simulation. The three integers of RANDOM_SEED must fulfill these conditions:

0 <= RANDOM_SEED(1) < 900000000
0 <= RANDOM_SEED(2) < 1000000
0 <= RANDOM_SEED(3)

A typical input for the RANDOM_SEED looks like this:

RANDOM_SEED =         248489752                0                0

The initial value of RANDOM_SEED and the value after each MD step are written to the REPORT file.

Related tags and articles

RANDOM_GENERATOR, IBRION, MDALGO

Examples that use this tag