Returns a random number between the numbers you specify.
Name | Type | Description |
arg1 | any | Is the smallest integer RANDBETWEEN will return. |
arg2 | any | Is the largest integer RANDBETWEEN will return. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); oWorksheet.GetRange("A1").SetValue(oFunction.RANDBETWEEN(-1, 10)); builder.SaveFile("xlsx", "RANDBETWEEN.xlsx"); builder.CloseFile();