Sep 23, 2012, 8:22 PM
Post #4 of 4
Your overall algorithm looks correct, except that your array is declared as follows:
meaning that it will be empty. Calculating the average (or mean, or median, or variance, or standard deviation, etc.) on zero value is not very interesting.
You need to find a way to populate @nums with meaningful values. Maybe you could use the rand function or, at worse, hard code some values.