C# 클래스 Binarysharp.MemoryManagement.Helpers.Randomizer

Static helper class providing tools for generating random numbers or strings.
파일 보기 프로젝트 열기: ZenLulz/MemorySharp

공개 메소드들

메소드 설명
GenerateGuid ( ) : System.Guid

Initializes a new instance of the Guid structure.

GenerateNumber ( ) : int

Returns a nonnegative random number.

GenerateNumber ( int maxValue ) : int

Returns a nonnegative random number less than the specified maximum.

GenerateNumber ( int minValue, int maxValue ) : int

Returns a random number within a specified range.

GenerateString ( int minSize = 40, int maxSize = 40 ) : string

Returns a random string where its size is within a specified range.

메소드 상세

GenerateGuid() 공개 정적인 메소드

Initializes a new instance of the Guid structure.
public static GenerateGuid ( ) : System.Guid
리턴 System.Guid

GenerateNumber() 공개 정적인 메소드

Returns a nonnegative random number.
public static GenerateNumber ( ) : int
리턴 int

GenerateNumber() 공개 정적인 메소드

Returns a nonnegative random number less than the specified maximum.
public static GenerateNumber ( int maxValue ) : int
maxValue int The exclusive upper bound of the random number to be generated. maxValue must be greater than or equal to zero.
리턴 int

GenerateNumber() 공개 정적인 메소드

Returns a random number within a specified range.
public static GenerateNumber ( int minValue, int maxValue ) : int
minValue int The inclusive lower bound of the random number returned.
maxValue int The exclusive upper bound of the random number returned. maxValue must be greater than or equal to minValue.
리턴 int

GenerateString() 공개 정적인 메소드

Returns a random string where its size is within a specified range.
public static GenerateString ( int minSize = 40, int maxSize = 40 ) : string
minSize int The inclusive lower bound of the size of the string returned.
maxSize int The exclusive upper bound of the size of the string returned.
리턴 string