RandomHelper Class | Helper帮助文档 |
使用Random类生成伪随机数和字符串
Inheritance Hierarchy
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class RandomHelper
Public Class RandomHelper
public ref class RandomHelper
type RandomHelper = class end
The RandomHelper type exposes the following members.
Constructors
Name | Description | |
---|---|---|
RandomHelper | Initializes a new instance of the RandomHelper class |
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GenerateCheckCode |
随机生成不重复字符串(数字和字母混和)
| |
GenerateCheckCodeNum |
随机生成不重复数字字符串
| |
GetHashCode | (Inherited from Object.) | |
GetRandomArrayT |
对一个数组进行随机排序
| |
GetRandomDouble |
生成一个0.0到1.0的随机小数
| |
GetRandomInt |
生成一个指定范围的随机整数,该随机数范围包括最小值,但不包括最大值
| |
GetRandomString |
产生随机字符串(数字和字母混和)
| |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
See Also