I was doing some past exam questions as a way of studying for an exam next month. One of the questions that I could not do was this: "Write a procedure that returns a two dimensional square array of size n x n, initialised with random real numbers between -100 & 200".
I have two problems with this question. Firstly, how can I manipulate my loop to include negative values (i.e. 'real' as opposed to 'int')? Secondly, how can I make it any square array, like a 2 x 2 or 17 x 17, for example? Any help would be very much appreciated.