Object Model Reference for GUI Testing > Utility Objects > Value Property

RandomNumber Object

Description

Enables you to work with random number parameters.

You can generate a value for the specified random number parameter using the RandomNumber object.

Syntax

RandomNumber(ParameterNameOrStartNumber, [EndNumber])

Argument

Type

Description

ParameterNameOrStartNumber

Variant

You can specify two different types of values for this options:

ParameterName—the name of a random number parameter that has already been defined in the Parameter Options or Value Configuration Options dialog box

StartNumber— the start number for the range within which the random number is generated.

EndNumber

Number

Relevant only when you specify a start number for the first argument.

The end number for the range within which the random number is generated. Maximum allowable value is 2147483647.

Properties

Method Value Checks that an object exists.

Back to top

Value Property

Description

Generates a value for the specified RandomNumber parameter.

Syntax

To generate any random number:

RandomNumber.Value(ParameterNameOrStartNumber, [EndNumber])

Argument

Type

Description

ParameterNameOrStartNumber

Variant

You can specify two different types of values for this options:

ParameterName—the name of a random number parameter that has already been defined in the Parameter Options or Value Configuration Options dialog box

StartNumber— the start number for the range within which the random number is generated.

EndNumber

Number

Relevant only when you specify a start number for the first argument.

The end number for the range within which the random number is generated. Maximum allowable value is 2147483647.

Note: The Value property is the default property for the RandomNumber object.


Back to top

See also: