MQL4 Reference
Math & Trig
MathRand
|
The MathRand function returns a pseudorandom integer within the range of 0 to 32767.
The MathSrand function must be used to seed the pseudorandom-number generator before calling MathRand.
Sample:
MathSrand(TimeLocal());
// Display 10 numbers.
for(int i=0;i<10;i++ )
Print("random value ", MathRand());
|
|
|