function ret = mult(n, amount)

if n<=0 || amount<=0
    'please insert two positive integers'
    ret = -1;
    return;
end
vec = [];
for i=1:n; vec = [vec; 1]; end;

for i = 1:amount
    A = rand(n);
    vec = A*vec;
    norm = 0;
    for j=1:n
        norm = norm + (vec(j, 1) * vec(j, 1));
    end
    norm = 1/sqrt(norm);
    vec = vec*norm;
end
ret = vec
quit

