RandomHelperGetRandomInt Method | Helper帮助文档 |
生成一个指定范围的随机整数,该随机数范围包括最小值,但不包括最大值
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static int GetRandomInt( int minNum, int maxNum )
Public Shared Function GetRandomInt ( minNum As Integer, maxNum As Integer ) As Integer
public: static int GetRandomInt( int minNum, int maxNum )
static member GetRandomInt : minNum : int * maxNum : int -> int
Parameters
- minNum
- Type: SystemInt32
最小值 - maxNum
- Type: SystemInt32
最大值
Return Value
Type: Int32[Missing <returns> documentation for "M:HD.Common.RandomHelper.GetRandomInt(System.Int32,System.Int32)"]
See Also