Question: boundaries in matrix or rtable, how can i do that

hey guys , my concern is about boundaries in random matrix or rtable. so, i can garantee that boundaries in  matrices are in 0 and 10, but i can´t impose a restriction  like the sum of row must be equal 10 for example.
help !! 

pop:=(10-0)*ArrayTools:-RandomArray(proc(A)
local i
if A::rtable[row] then 
seq(A(i),i=1..NumElems(A));
else
args
end if 
end proc(10,3))+0; 

Please Wait...