Question

This problem investigates how you can use random numbers to simulate a computer dice game write a function called twooice tha

0 0
Add a comment Improve this question Transcribed image text
Answer #1

function s = twoDice()

k1 = randi(6);
k2 = randi(6);

s = k1 + k2;

end


sum = twoDice()

====================================================
SEE OUTPUT

Your Code... 1 functions = twoDi ceo 2 = randi(6); k2 = randi(6); 3 kl 4 6 s=k1 + k2; 7 8 end 10 11 sum=twoDice。 CommandLine
Thanks, PLEASE UPVOTE, PLEASE COMMENT if there is any concern.

Add a comment
Know the answer?
Add Answer to:
This problem investigates how you can use random numbers to simulate a computer dice game write a function called twooice that simulates the rolling of two sik-sided dice. The function takes no input...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT