Friday, January 8, 2010

In c# programming, how do i make a two dimensional array with with the 1st column a random generated number?

I need to make a 2d array with one column being a random generated number and the 2nd column is the 1st columns square.In c# programming, how do i make a two dimensional array with with the 1st column a random generated number?
Create a field and put your random number into it. Assign that variable to the 1st column of your array. Then assign that filed squared to the next dimension. Repeat the process until you have filled the array as much as you desire.

1 comment: