Show / Hide Table of Contents

    Class RandomExtensions

    Contains extension methods for Random class.

    Содержит методы расширения для класса Random.

    Inheritance
    Object
    RandomExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Platform.Random
    Assembly: Platform.Random.dll
    Syntax
    public static class RandomExtensions

    Methods

    | Improve this Doc View Source

    NextBoolean(Random)

    Return a random Boolean value.

    Возвращает случайное значение Boolean.

    Declaration
    public static bool NextBoolean(this Random random)
    Parameters
    Type Name Description
    Random random

    A pseudo-random number generator.

    Генератор псевдослучайных чисел.

    Returns
    Type Description
    Boolean

    A random Boolean value.

    Случайное значение Boolean.

    | Improve this Doc View Source

    NextUInt64(Random)

    Returns a random 64-bit unsigned integer that is greater than or equal to MinValue, and less than or equal to MaxValue.

    Возвращает случайное 64-разрядное целое число без знака, которое больше или равно MinValue и меньше или равно MaxValue.

    Declaration
    public static ulong NextUInt64(this Random random)
    Parameters
    Type Name Description
    Random random

    A pseudo-random number generator.

    Генератор псевдослучайных чисел.

    Returns
    Type Description
    UInt64

    A 64-bit unsigned integer that is greater than or equal to MinValue, and less than or equal to MaxValue.

    64-разрядное целое число без знака, которое больше или равно MinValue и меньше или равно MaxValue.

    | Improve this Doc View Source

    NextUInt64(Random, Range<UInt64>)

    Returns a random 64-bit unsigned integer that is greater than or equal to minimum of specified range, and less than or equal to maximum of specified range.

    Возвращает случайное 64-разрядное целое число без знака, которое больше или равно минимуму указанного диапазона и меньше или равно максимуму указанного диапазона.

    Declaration
    public static ulong NextUInt64(this Random random, Range<ulong> range)
    Parameters
    Type Name Description
    Random random

    A pseudo-random number generator.

    Генератор псевдослучайных чисел.

    Range<UInt64> range

    The range of possible values.

    Диапазон возможных значений.

    Returns
    Type Description
    UInt64

    A 64-bit unsigned integer that is greater than or equal to the minimum of specified range, and less than or equal to the maximum of the specified range.

    64-разрядное целое число без знака, которое больше или равно минимуму указанного диапазона и меньше или равно максимуму указанного диапазона.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX