Question: generate a list of numbers then gather them into a readable format

I need to make a list of 12 random integers from 0 to 1. Take the sum of those values and subtract 6. I have that part....now the part I don't have is how do I run that 10^6 times and keep track of my values? with(RandomTools): with(stats): with(ListTools); > L := seq(Generate(integer(range = 0 .. 1)), i = 1 .. 12); 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0 > > G := add(i^2, i = L); 9 > Z = G-6; Z = 3 That is my program so far. Any help is appreciated.
Please Wait...