Well I found out what I did wrong. It turns out that I forgot to return the result. So not wonder the program would not compile.

Here's the code I needed to add:

So the whole function needs to look like this:

Code:

private static int[] generateLotsOfNumbers(int count)
{
Random generator = new Random(0);
int[] result = new int[count];
for (int i = 0; i < count; i++)
{
result[i] = generator.Next();
}
return result;
}