From: us on
"Redduan Haris" <monk_red91(a)yahoo.com> wrote in message <hpc0pt$b6o$1(a)fred.mathworks.com>...
> can anyone please help me with this q??
>
> Write the program that simulates the rolling of two dice. The program should use randperm to roll the first dice, and should use randperm again to roll the second dice. The sum of the two values should then be calculated. Your program should roll the two dice 100 times. Use a single-subscripted array to tally the numbers of times each possible sum appears. Print the result in a tabular format. This program analyzes the result and shows how many times the sum of 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 occurs

what have YOU done so far to solve YOUR particular problem...

us
From: anwar desa on
TideMan <mulgor(a)gmail.com> wrote in message <98e98688-b3fb-4a60-9016-598dac5c2c61(a)y17g2000yqd.googlegroups.com>...
> On Apr 5, 6:43 pm, "Redduan Haris" <monk_re...(a)yahoo.com> wrote:
> > can anyone please help me with this q??
> >
> > Write the program that simulates the rolling of two dice. The program should use randperm  to roll the first dice, and should use randperm again to roll the second dice. The sum of the two values should then be calculated. Your program should roll the two dice 100 times. Use a single-subscripted array to tally the numbers of times each possible sum appears. Print the result in a tabular format. This program analyzes the result and shows how many times the sum of 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 occurs
>
> Redduan Haris is another homework cheat.
> Hopefully, Google will pick this up so that in future if anyone enters
> "homework cheat" into Google, they'll get Redduan Haris near the top
> of the list. And if they enter Redduan Haris, they'll get homework
> cheat.
>
> But, quite frankly, your assignment is so simple, I don't know why you
> need to cheat.
> Your instructor has kindly told you exactly how to solve the problem.
> So why cheat? Just do what he told you.
>