Version

Random(Double,Double) Method

Returns a double drawn from the uniform distribution between the specified lowerBound and the specified upperBound.
Syntax
'Declaration
 
Public Overloads Shared Function Random( _
   ByVal lowerBound As Double, _
   ByVal upperBound As Double _
) As Double
public static double Random( 
   double lowerBound,
   double upperBound
)

Parameters

lowerBound
A lower bound on the return value.
upperBound
An upper bound on the return value.

Return Value

A random double.
Exceptions
ExceptionDescription
System.ArgumentException Occurs when lowerBound is greater than upperBound.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also