MQL4 Reference Predefined Variables _RandomSeed

MQL4 Help as One File:


Variable for storing the current state when generating pseudo-random integers. _RandomSeed changes its value when calling MathRand(). Use MathSrand() to set the required initial condition.

x random number received by MathRand() function is calculated in the following way at each call:


See also

MathRand(), MathSrand(), Integer types