# determining frequency

• 10-03-2002
lakai02
determining frequency
hey all,
I was wondering:
I have two arrays both rolling dice ( rand()%6+1 ) for 6000 times and i had the sums next to them in a column.... how would I:

1) Determine the frequency of a number on the die
(say 6, and wanting to know how many times it occured)

2) Determine the proportion of total trials on which that number on the die came up (frequency/total trials) so that all the proportions add up to 1

3)Construct a chart that prints the doubles of the arrays into order with double 6's at the top and double 1's at the bottom....

Well im lost here and just need some guidance... thanks guys:)
• 10-03-2002
Cshot
• 10-03-2002
kermi3
This is obviously a homework problem. Why don't you post what you've done or where you're are confused with a specfic concept and I'm sure someone will help you. For more guidence on this I suggest you read the Announcements, particuarly the scond one that talks about homework, or you can PM me. Good Luck.
• 10-03-2002
quzah
Waaaaait a second. Wasn't this just posted by someone yesterday that was "work their friend gave them"? Kinda makes you wonder...

Quzah.
• 10-03-2002
kermi3
Yes it was, same user. I'm going to close this thread lakai02 because you got plenty of answers on the old one. Which is here: