Fix sprand for very small matrices
Merge pull request #6076 from JuliaLang/anj/sparse

Fix sprand for very small matrices