- MathAbs
- MathArccos
- MathArcsin
- MathArctan
- MathArctan2
- MathClassify
- MathCeil
- MathCos
- MathExp
- MathFloor
- MathLog
- MathLog10
- MathMax
- MathMin
- MathMod
- MathPow
- MathRand
- MathRound
- MathSin
- MathSqrt
- MathSrand
- MathTan
- MathIsValidNumber
- MathExpm1
- MathLog1p
- MathArccosh
- MathArcsinh
- MathArctanh
- MathCosh
- MathSinh
- MathTanh
- MathSwap
MathRand
在0到32767之间返回随机整数。
int MathRand(); |
返回值
整数值在0到32767之间。
注释
在第一次调用前,调用 MathSrand 建立初始状态伪随机数是有必要的。
注释
取代MathRand()可以使用 rand()。
示例:
//+------------------------------------------------------------------+
|