Question: How to Specify the Number of Non-zero Entries in a Random Matrix?

Hi,

I am using A:=LinearAlgebra:-RandomMatrix(10,10,generator=-10..10) to generate a random matrix. How may I specify that every row of A has at least three non-zero entries? 

Thanks!

Please Wait...