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