Excel's randomization functions generate values, shuffle datasets, and simulate timelines using simple formulas.
Output is 2.5 as expected. Of course for your specific example you'll use a local function and access the [1] index of the array. Rest is still the same.