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

Tossing coins, flipping dice or dealing cards for simulation or game purposes.
104 téléchargements
Mise à jour 6 fév. 2023

Afficher la licence

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.

Citation pour cette source

Hristo Zhivomirov (2026). Toss a Coin, Flip a Dice or Draw a Card with Matlab (https://fr.mathworks.com/matlabcentral/fileexchange/75288-toss-a-coin-flip-a-dice-or-draw-a-card-with-matlab), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2017b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Remerciements

Inspiré par : Matrix Visualization with Matlab

Version Publié le Notes de version
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