function e=verovatnocagreske(N,p) for n=1:N x=rand(1,1); if x