clear all; close all;

S_X = 'abcde'; p_X = [1/5 1/5 1/5 1/5 1/5]; 

n = 100;
MessageSequence = datasample(S_X,n,'Weights',p_X)
MessageSequence = reshape(MessageSequence,10,10)



