C# 클래스 Rolcore.ThreadSafeRandom

Provides a thread-safe, statistically random operations. Use instead of Random.
파일 보기 프로젝트 열기: Rollins/Rolcore

공개 메소드들

메소드 설명
Next ( ) : int

Returns a non-negative random number.

Next ( int maxValue ) : int

Returns a non-negative random number less than the specified maximum.

Next ( int minValue, int maxValue ) : int

Returns a random number within a specified range.

비공개 메소드들

메소드 설명
EnsureLocal ( ) : void

Ensures a thread-local Random instance is available.

메소드 상세

Next() 공개 정적인 메소드

Returns a non-negative random number.
public static Next ( ) : int
리턴 int

Next() 공개 정적인 메소드

Returns a non-negative random number less than the specified maximum.
public static Next ( int maxValue ) : int
maxValue int The exclusive upper bound of the random number to be generated. /// Must be greater than or equal to zero.
리턴 int

Next() 공개 정적인 메소드

Returns a random number within a specified range.
public static Next ( 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 to be generated. /// Must be greater than or equal to zero.
리턴 int