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