UniformInt16 Struct
A uniform distribution of type short.
Namespace
RandN.Distributions
Interfaces
Base Types
  • object
  • ValueType
UniformInt16
ValueType
object
IDistribution<short>

Syntax

public readonly struct UniformInt16 : ValueType, IDistribution<short>

Methods

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