C# 클래스 CryptoRandom, WingTipTickets

상속: RandomNumberGenerator
파일 보기 프로젝트 열기: Microsoft/WingTipTickets 1 사용 예제들

공개 메소드들

메소드 설명
CryptoRandom ( ) : System

Creates an instance of the default implementation of a cryptographic random number generator that can be used to generate random data.

GetBytes ( byte buffer ) : void

Fills the elements of a specified array of bytes with random numbers.

Next ( ) : int

Returns a nonnegative random number.

Next ( int maxValue ) : int

Returns a nonnegative random number less than the specified maximum

Next ( int minValue, int maxValue ) : int

Returns a random number within the specified range.

NextDouble ( ) : double

Returns a random number between 0.0 and 1.0.

메소드 상세

CryptoRandom() 공개 메소드

Creates an instance of the default implementation of a cryptographic random number generator that can be used to generate random data.
public CryptoRandom ( ) : System
리턴 System

GetBytes() 공개 메소드

Fills the elements of a specified array of bytes with random numbers.
public GetBytes ( byte buffer ) : void
buffer byte An array of bytes to contain random numbers.
리턴 void

Next() 공개 메소드

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

Next() 공개 메소드

Returns a nonnegative random number less than the specified maximum
public Next ( int maxValue ) : int
maxValue int The inclusive upper bound of the random number returned. maxValue must be greater than or equal 0
리턴 int

Next() 공개 메소드

Returns a random number within the specified range.
public 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 returned. maxValue must be greater than or equal to minValue.
리턴 int

NextDouble() 공개 메소드

Returns a random number between 0.0 and 1.0.
public NextDouble ( ) : double
리턴 double