I am trying to generate a random binary matrix in python or C++ with a probability such that 95% of elements being 0. also want to make the matrix have 1s just in the upper