NxN Matrix of random numbers using nested for loop : <p>I skipped a semester and completely forgot the basics of coding and my new professor at my new campus is jumping right into coding problems instead of reviewing like i figured he would do. I am to write a program that creates a 4x4 matrix of random integer values from 0-9, and then reduces it to a 2x2 matrix of doubles by averaging the 4 quadrants. I vaguely remember how to do a random number generator but the matrix alludes me. If someone would be willing to help me and walk through it with me i would much appreciate it!</p>

<p>An example of what it is suppose to look like would be something along the lines of this.</p>

<p>Initial matrix</p>

<p>8 9 0 8</p>

<p>8 4 5 3</p>

<p>3 0 1 1</p>

<p>3 9 5 6</p>

<p>Result matrix</p>

<p>7.25 4.0</p>

<p>3.75 3.25</p>
