Bewerken

Delen via


WorksheetFunction.RandBetween(Object, Object) Method

Definition

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

public:
 double RandBetween(System::Object ^ Arg1, System::Object ^ Arg2);
public double RandBetween (object Arg1, object Arg2);
Public Function RandBetween (Arg1 As Object, Arg2 As Object) As Double

Parameters

Arg1
Object

Bottom - the smallest integer RANDBETWEEN will return.

Arg2
Object

Top - the largest integer RANDBETWEEN will return.

Returns

Applies to