A uniform distribution of type
System.UInt16
.- Namespace
- RandN
.Distributions - Interfaces
- IDistribution
<ushort>
- IDistribution
- Base Types
- object
- ValueType
Syntax
public readonly struct UniformUInt16 : ValueType, IDistribution<ushort>
Methods
Name | Return Value | Summary |
---|---|---|
Create | UniformUInt16 | Creates a UniformUInt16 with an exclusive upper bound. Should not be used directly; instead, use New(ushort, ushort) .static |
CreateInclusive | UniformUInt16 | Creates a UniformUInt16 with an exclusive lower bound. Should not be used directly; instead, use NewInclusive(ushort, ushort) .static |
Sample | ushort | Samples a value from rng, blocking until a suitable value is returned. |
TrySample | bool | Attempts to sample a value from rng once, returning false if the value returned is not suitable. |