Share via


PexChoose.ValueFromRange(String, Int32, Int32) Method

Definition

Gets an integer from a specified range.

public:
 static int ValueFromRange(System::String ^ name, int minInclusive, int maxExclusive);
public static int ValueFromRange (string name, int minInclusive, int maxExclusive);
static member ValueFromRange : string * int * int -> int
Public Shared Function ValueFromRange (name As String, minInclusive As Integer, maxExclusive As Integer) As Integer

Parameters

name
String

The value's name

minInclusive
Int32

The range's lower bound, which is inclusive.

maxExclusive
Int32

The range's upper bound, which is exclusive.

Returns

Returns an integer from the specified range.

Applies to