What are you exact requirements? What exactly is not "working properly" - please tell us what you expect and what is happening.

You're supposed to fill a 2D array with random numbers. Instead,...