FreeVBCode code snippet: Calculate the Average of Items in a Numeric Array (generic function)