WorksheetFunction.RandBetween(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.