Fix sprand for very small matrices