Version

Random(Int32,Double,Double) Method

Returns a Vector with N numbers drawn from the uniform distrubition between the lowerBound and the upperBound.
Syntax
'Declaration
 
Public Overloads Shared Function Random( _
   ByVal N As Integer, _
   ByVal lowerBound As Double, _
   ByVal upperBound As Double _
) As Vector
public static Vector Random( 
   int N,
   double lowerBound,
   double upperBound
)

Parameters

N
The length of the Vector.
lowerBound
A lower bound on the elements of the return value.
upperBound
An upper bound on the elements of the return value.

Return Value

A Vector with N random numbers.
Exceptions
ExceptionDescription
System.ArgumentException Occurs when N is less than zero.
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