Previous Next


Sample Method (RDKDistribution Object)

Description

Returns a sample from the distribution. Note: If you have a default distribution defined for an RDKInput object, it will automatically be sampled for you and you do not need to call this function.

Syntax

object.Sample

Arguments

None.

Return Value

(Double) – the sample from the distribution.

Example

'Get a sample from a Normal(10,10) distribution
Dim dist as New Distribution
Dim mySample as Double
With dist
    .RiskFunction = "Normal(10,10)
    mySample = .Sample()
End With