An algorithm for creating a random matrix with non-adjacent non-zero entries (with some extra requirements)
Algorithm for equiprobable random square binary matrices with two non-adjacent non-zeros in each row and column