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

Syntax

public readonly struct UnitInterval.ClosedOpenSingle : ValueType, IDistribution<float>

Properties

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

Methods

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