Share via


Distribution.OnGetRangeValue Method

Returns a value that is between 0 and 1 and that represents a point on the distribution curve when overridden in a derived class.

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

Syntax

'Declaration
Protected Overridable Function OnGetRangeValue As Double
'Usage
Dim returnValue As Double 

returnValue = Me.OnGetRangeValue()
protected virtual double OnGetRangeValue()
protected:
virtual double OnGetRangeValue()
protected function OnGetRangeValue() : double

Return Value

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

Remarks

This method randomly generates a value that is between 0.0 and 1.0 and that represents a point on the distribution curve. Values that are less than 0.0 or more than 1.0 produce undefined results. This method is called one time for each row of data that is generated. The more rows of data that are generated, the more closely the data approximates the distribution curve. The value that this method returns is scaled by the generator that uses it, based on the Min and Max properties that this user specifies. The value is converted to the type of data that is being generated.

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

.NET Framework Security

See Also

Reference

Distribution Class

Distribution Members

Microsoft.Data.Schema.DataGenerator Namespace