You could use again sample together with view:
sample
view
view(m, :, sample(1:100,10,replace=false))