IRandomProvider

Ecng.Common

A source of random values.

メソッド

Next
public int Next(int min, int max)
result = iRandomProvider.Next(min, max)

Returns a value in the range, both ends included.

min
Smallest value that may be returned.
max
Largest value that may be returned.

戻り値: A value between and .

NextBytes
public void NextBytes(byte[] buffer)
iRandomProvider.NextBytes(buffer)

Fills the buffer with random bytes.

buffer
Buffer to fill.
NextDouble
public double NextDouble()
result = iRandomProvider.NextDouble()

Returns a value in [0, 1).

戻り値: A value from zero up to but not including one.

NextLong
public long NextLong(long min, long max)
result = iRandomProvider.NextLong(min, max)

Returns a value in the range, both ends included.

min
Smallest value that may be returned.
max
Largest value that may be returned.

戻り値: A value between and .