function ADJ = ADJRAND(N,opt,p)
    RAND = binornd(1,p,N,N); 
    if length(opt) == 0
        ADJ = RAND; 
    else     
        ADJ = ceil((RAND + eye(N,N))/2); 
    end
end

