This Matrix generator creates a sparse matrix of the specified size.
It fills this matrix at random positions with random numbers
until the requested density of non-zero elements is achieved.
The range of the random elements can be specified by the minimum and maximum
element values; typical values would be 0 and 1 or -1 and +1.