Hello,
Just got started. I want to call a function from another function. Here is a snippet of code I'm using as a test.
tester[]:=
w=RandomInteger[{-10,10}];
t=Table[tester[],{i,9}];
t
Out[3]= {4,8,-6,4,5,-10,8,1,-3}
checkarray[entry_,nproblems_]:=
Table[entry,{i,1,nproblems}];
out=checkarray[tester[],5]
{8,8,8,8,8}
I want the checkarray function to write a Table with n random values, but it writes one value n times. So what's happening here?