Hi,
How can I turn my output associated with ‘updateList’ into a list in the format?
{{1,1,1},{2,4,8},{3,9,27}}
It’s currently,
{1,1,1}
{2,4,8}
{3,9,27}
Here is a simplification of the function that I’m attempting,
updateList =
Do[
Do[
If[
j*RandomReal[] > 1/2
,
, Print[{i, i^2, i^3}]
Break[]]
, {j, 1, 9, 1}]
, {i, 1, 3, 1}]
I found a StackExchange post on the topic, but have been unable thus far to apply it successfully. This will operate on a list about 4,000 items long. http://mathematica.stackexchange.com/questions/2930/creating-a-table-matrix-during-a-for-loop
Any help very much appreciated!
Greg