Returns a random number greater than or equal to 0 and less than 1, evenly distributed (changes on recalculation).
This method doesn't have any parameters.
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); oWorksheet.GetRange("A1").SetValue(oFunction.RAND()); builder.SaveFile("xlsx", "RAND.xlsx"); builder.CloseFile();