x = zeros(1,1000);

for i = 1:1000
    x(i+1) = x(i) + randn;
end

plot(x)