RandomHelper Class

HD.Common

RandomHelper Class Helper帮助文档
使用Random类生成伪随机数和字符串
Inheritance Hierarchy

SystemObject  HD.CommonRandomHelper

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

  NameDescription
Public methodRandomHelper
Initializes a new instance of the RandomHelper class
Top
Methods

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGenerateCheckCode
随机生成不重复字符串(数字和字母混和)
Public methodGenerateCheckCodeNum
随机生成不重复数字字符串
Public methodGetHashCode (Inherited from Object.)
Public methodStatic memberGetRandomArrayT
对一个数组进行随机排序
Public methodStatic memberGetRandomDouble
生成一个0.0到1.0的随机小数
Public methodStatic memberGetRandomInt
生成一个指定范围的随机整数,该随机数范围包括最小值,但不包括最大值
Public methodStatic memberGetRandomString
产生随机字符串(数字和字母混和)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
See Also

Reference