Open.Decimal Struct
A decimal distribution over the open interval (0m, 1m).
Namespace
RandN.Distributions.UnitInterval
Containing Type
Open
Interfaces
Base Types
  • object
  • ValueType
Open.Decimal
ValueType
object
IPortableDistribution<decimal>
IDistribution<decimal>

Syntax

public readonly struct Open.Decimal : ValueType, IPortableDistribution<decimal>, &#xA;    IDistribution<decimal>

Properties

NameProperty TypeSummary
InstanceOpen.Decimal
Gets the instance of Open.Decimal.
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.