A uniform distribution of type
System.Int16
.- Namespace
- RandN
.Distributions - Interfaces
- IDistribution
<short>
- IDistribution
- Base Types
- object
- ValueType
Syntax
public readonly struct UniformInt16 : ValueType, IDistribution<short>
Methods
Name | Return Value | Summary |
---|---|---|
Create | UniformInt16 | Creates a UniformInt16 with an exclusive upper bound. Should not be used directly; instead, use New(short, short) .static |
CreateInclusive | UniformInt16 | Creates a UniformInt16 with an exclusive lower bound. Should not be used directly; instead, use NewInclusive(short, short) .static |
Sample | short | 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. |