title: JavaScript - store a grid of numbers
body: <p>I want to generate a grid of numbers (10 x10) where the top row will be numbers 1-10 in a random order and the first column will be 1-10 in a random order. The numbers inside will be calculated in a various ways based on those numbers on the edges. My question is about organisation/structure of this data. What would be the best way for accessing and doing calculations on  them across rows/columns. Would it be 10 arrays holding 10 elements each or json object? I am stuck as i initially only the toprow and first column will be randomly generated. The rest of numbers on the grid will be calculated. Please advise how to approach it. Thank you</p>