Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WorksheetFunction.RandBetween Method

Office 2007
Returns a random integer number between the numbers you specify. A new random integer number is returned every time the worksheet is calculated.

Syntax

expression.RandBetween(Arg1, Arg2)

expression   A variable that represents a WorksheetFunction object.

Parameters

NameRequired/OptionalData TypeDescription
Arg1RequiredVariantBottom - the smallest integer RANDBETWEEN will return.
Arg2RequiredVariantTop - the largest integer RANDBETWEEN will return.

Return Value
Double




Show: