WorksheetFunction.RandBetween(Object, Object) 方法

定义

返回介于指定的两个数字之间的一个随机整数。 每次计算工作表时都将返回一个新的随机整数。

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

参数

Arg1
Object

Bottom - RANDBETWEEN 将返回的最小整数。

Arg2
Object

Top - RANDBETWEEN 将返回的最大整数。

返回

适用于