UnitInterval.ClosedOpenDecimal Struct
A distribution over the closed-open interval [0, 1).
Namespace
RandN.Distributions
Containing Type
UnitInterval
Interfaces
Base Types
  • object
  • ValueType
UnitInterval.ClosedOpenDecimal
ValueType
object
IDistribution<decimal>

Syntax

public readonly struct UnitInterval.ClosedOpenDecimal : ValueType, IDistribution<decimal>

Properties

NameProperty TypeSummary
InstanceUnitInterval.ClosedOpenDecimal
Gets the instance of UnitInterval.ClosedOpenDecimal.
static

Methods

NameReturn ValueSummary
Sample<TRng>(TRng)decimal
Samples a value from rng, blocking until a suitable value is returned.
TrySample<TRng>(TRng, decimal)bool
Attempts to sample a value from rng once, returning false if the value returned is not suitable.