OpenClosed.Decimal Struct
A System.Decimal distribution over the open-closed interval (0m, 1m].
Namespace
RandN.Distributions.UnitInterval
Containing Type
OpenClosed
Interfaces
Base Types
  • object
  • ValueType

OpenClosed.Decimal

ValueType

object

IPortableDistribution<decimal>

IDistribution<decimal>

Syntax

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

Properties

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