In this paper we propose an algorithm that constructs a matrix with a specified sign pattern and row sums and column sums. We also investigate propoerties of such matrices, such as the uniqueness of solutions and integer-only solutions.