Throwing Dice - Will You Be Eaten By The Dragon? - MATLAB Cody - MATLAB Central

Problem 44288. Throwing Dice - Will You Be Eaten By The Dragon?

Difficulty:Rate
You and a dragon have agreed to let dice rolls determine whether it eats you or not.
The dragon will roll a single die, of x sides. You will roll several dice, of y sides each. The total number of sides on your dice add to x.
The dragon will let you go uneaten if your total throw matches or exceeds theirs.
What are your chances of survival?

Solution Stats

18.23% Correct | 81.77% Incorrect
Last Solution submitted on May 08, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Group

Prográmky Image
Prográmky
  • 10 Problems
  • 84 Finishers

Problem Recent Solvers137

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!