Toss a Coin, Flip a Dice or Draw a Card with Matlab

版本 1.1.0 (8.9 KB) 作者: Hristo Zhivomirov
Tossing coins, flipping dice or dealing cards for simulation or game purposes.
96.0 次下载
更新时间 2023/2/6

查看许可证

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.

引用格式

Hristo Zhivomirov (2024). 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. 检索来源 .

MATLAB 版本兼容性
创建方式 R2017b
兼容任何版本
平台兼容性
Windows macOS Linux
致谢

参考作品: Matrix Visualization with Matlab

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0

A new version of the codes has been uploaded.

1.0.2

Additional information has been given about the submission.

1.0.1

Additional information has been given about the submission.

1.0.0