%VAs discretas %Bernouli % N = 1e6; % p = 0.5; % indices0 = find(rand(1,N)