MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Math & Trig  MathRand

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
int 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());