If I could ask about a few details:
I'm guessing that the array is always square, with each dimension equal to the users entry.

What are the elements of the random array? Integers between 1 and A1^2?

Are duplicates allowed?