How to use runif(1,1,7) in a program loop?
This works:
jx:=10 j:=0..jx k:=0..2 x[j,k:=ceil(rnd(7)) x= displays a 3by10 mateix of integers 1,2,..7
This does not work: x[j,k:=ceil(runif(1,1,7)) x= displays a 3by10 matrix of [1,1] in every cell.
ceil(runif(1,1,7)) works by itself but not as I'm using it (above).
Any suggestions will be appreciated.
Ed

