function seq=m_pam(N,M);
% Create a random, uniformly distributed 
% M-PAM source sequence with length N 
% and alphabet {-M+1, ..., -1 1, ..., M-1}
seq=2*floor(M*rand(1,N))-M+1;


