4×4 = ???

Set out 16 integers in a 4 x 4 matrix and then colour in the rows in four different colours at random and the columns in the same four colours at random. Sum the integers where the row and column are of the same colour (4 values). For any given such total, how do you lay out the initial 16 integers?