Share via


Distribution.OnGetRangeValue Method

Returns a value between 0 and 1 and represents a point on the distribution curve.

Namespace:  Microsoft.Data.Schema.Tools.DataGenerator
Assembly:  Microsoft.Data.Schema.Tools (in Microsoft.Data.Schema.Tools.dll)

Syntax

'Declaration
Protected Overridable Function OnGetRangeValue As Double
protected virtual double OnGetRangeValue()
protected:
virtual double OnGetRangeValue()
abstract OnGetRangeValue : unit -> float 
override OnGetRangeValue : unit -> float 
protected function OnGetRangeValue() : double

Return Value

Type: System.Double
Returns a double value between 0.0 and 1.0, inclusive.

Remarks

This OnGetRangeValue method randomly generates a value between 0.0 and 1.0 that represents a point on the distribution curve. This method is called once for each generated row. The more rows of data that are generated, the more closely the data approximates the distribution curve. The return value is scaled by the generator that uses it, based on the Min and Max properties that the user specifies. The value is converted to the type of data that is being generated.

The GetRangeValue method calls this method. You must override OnGetRangeValue if you want to override the GetRangeValue functionality.

.NET Framework Security

See Also

Reference

Distribution Class

Microsoft.Data.Schema.Tools.DataGenerator Namespace

GetRangeValue