function [A, B, C] = randm(n);

% form symmetric matrices A, B and C=zeros(n);
% call: [A, B, C] = randm(n);
   
const = 1;  
A = round(rand(n)*10 -const);
A1 = A;
A = triu(A1,1);
B = tril(A1,-1);

A = A + A';
B = B + B';
C = round(rand(n)*10-const+3);



%n=3;
%A = [17 -1 4;-1 17 4;4 4 20]; B = [5 0 1;0 2 0;1 0 5]; C = zeros(3,3);
