RandomExtensions
Ecng.Common
Draws from a Random over a range that includes both of its ends.
Методы
NextInclusive
public static long NextInclusive(Random random, long min, long max)
result = RandomExtensions.NextInclusive(random, min, max)
Draws a value in the range, both ends included.
- random
- Source.
- min
- Smallest value that may be returned.
- max
- Largest value that may be returned.
Возвращает: A value between and .
NextInclusive
public static int NextInclusive(Random random, int min, int max)
result = RandomExtensions.NextInclusive(random, min, max)
Draws a value in the range, both ends included.
- random
- Source.
- min
- Smallest value that may be returned.
- max
- Largest value that may be returned.
Возвращает: A value between and .
NextUInt64
public static ulong NextUInt64(Random random)
result = RandomExtensions.NextUInt64(random)
Draws sixty-four uniform bits.
- random
- Source.
Возвращает: The bits.