You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
The present submission contains a set of Matlab functions that provide generation of outcomes from the following processes: tossing of one or more coin(s); flipping of one or more N-sided dice; dealing of one or more cards from one or more card decks. The functions could be used for simulation or game purposes (e.g., Monte Carlo simulations or Backgammon game).
A few examples are given to clarify the usage of the functions. For convenience, the input and output arguments are given in the beginning of each function.
Cite As
Hristo Zhivomirov (2026). Toss a Coin, Flip a Dice or Draw a Card with Matlab (https://www.mathworks.com/matlabcentral/fileexchange/75288-toss-a-coin-flip-a-dice-or-draw-a-card-with-matlab), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Matrix Visualization with Matlab
General Information
- Version 1.1.0 (8.86 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
