2014-02-15 09:39:34 UTC
Basically What I'm trying to do is generate 2 Random numbers between 1-6 which then sum together and become a number between 2-12. I know how to do that. (use Ctime to generate true random number e.t.c.)
I'm confused about how I store these and then total up how many there are of each number. I need to collect 10,000 results and then display an asterix for every 100 of each number so e.g.
2 *
3 **
4 ***
...
My first attempt used Vectors but I later decided that perhaps using an Array may be better as an array doesn't vary in size. OR I'm not sure If i should just use a series of Loops and if statements that assort the numbers into their own arrays/vectors because then I could find the total size of said vector and divide it by 100 to receive the total number of asterix on each number.
Really, I'm utterly confused and I've gotten to the stage of confusion where over-thinking is losing me progress.
What would you suggest?
any help is appreciated.