UniformUInt16 Struct
A uniform distribution of type System.UInt16.
Namespace
RandN.Distributions
Interfaces
Base Types
  • object
  • ValueType

UniformUInt16

ValueType

object

IDistribution<ushort>

Syntax

public readonly struct UniformUInt16 : ValueType, IDistribution<ushort>

Methods

NameReturn ValueSummary
Create(ushort, ushort)UniformUInt16
Creates a UniformUInt16 with an exclusive upper bound. Should not be used directly; instead, use New(ushort, ushort).
static
CreateInclusive(ushort, ushort)UniformUInt16
Creates a UniformUInt16 with an exclusive lower bound. Should not be used directly; instead, use NewInclusive(ushort, ushort).
static
Sample<TRng>(TRng)ushort
Samples a value from rng, blocking until a suitable value is returned.
TrySample<TRng>(TRng, ushort)bool
Attempts to sample a value from rng once, returning false if the value returned is not suitable.