clear all;
close all;

mm=10;
sig=1:mm;
figure;plot(sig);grid on;

rand(seed,131);
rnd=round(mm*rand(1,mm));

figure;plot(sort(rnd));grid on;