Home > By category > Scripts >Games > A dice roller for Matlab



A dice roller for Matlab

  • Downloads: 
  • Views: 
  • Rating:

SYNOPSIS: [total, details] = roll(str)

INPUT str: Dice to be rolled. XdY, where X and Y are scalars, rolls X
fair Y-sided dice. Both X and Y are necessary.
If str is empty or omitted, '1d20' is used as default.

ROLL replaces the dice expression(s) by the rolled result, and
then evaluates the string. This makes it possible to use any
function call as input to ROLL as long as the function name
does not contain the signature of a roll (i.e. a number
followed by the letter 'd' followed by a number). In practice,
if you use ROLL for games, you most likely need only + and -.

There is one special function, XdYbZ, that takes the best Z
rolls out of the X attempts. This is useful to generate
character abilities in role-playing games.

OUTPUT total: total of the roll
details: individual rolls (cell array with results for each
dice in the input

REMARKS (1) If no output is requested, results are printed to screen
(2) Thanks to John D'Errico for pointing out that it is possible
to use any function with roll (as long as it takes the
results of dice rolls as input)

EXAMPLES roll 2d6 rolls two 6-sided dice
roll 1d8+1d4-2 rolls a 8-sided dice, a 4-sided dice and subtracts
2 from the result
roll 1d2 rolls a 2-sided dice (i.e. a coin flip)
roll log(2^1d6) takes the natural logarithm of 2 to the power of
the result of the roll of a 6-sided dice.
roll 1+1 throws an error, because there are no dice to roll.

Free download from Shareware Connection - Dice to be rolled. XdY, where X and Y are scalars, rolls X

Publisher: Jonas | License: Shareware
Version: 1.0 | Size: 10 KB | Platform: Matlab, Scripts
Released Date: 10-03-2013 | Rating: 0 | Title: A dice roller for Matlab

Author Url: http://www.mathworks.com
Program Info Url: http://www.mathworks.com
Download Url: http://www.mathworks.com/matlabcentral/fx_files/27327/2/roll.zip

More downloads from A dice roller for Matlab publisher Jonas:

Automatic template for new functions - If you're tired of re-typing or re-copying the same header

Plot average line - plotAverage adds an average line into plotted data

Map texture to patch - patchTexture(patchHandle,texture)

A dice roller for Matlab keywords:
A dice roller for Matlab related downloads:

Dice roller - Dice roller is a simple and lightweight application built using the Java programming language that you can use to generate polyhedral dice rolling scenarios.

dice roller c++ - dice roller c++ was developed as a simple and accessible application that rolls a dice 36000 times and tells you the stats.

Kinect for MATLAB - Kinect for MATLAB is a handy MEX collection that allows you to get images captured with a Kinect device to your Matlab environment.

Quaternion toolbox for Matlab - Quaternion toolbox for Matlab was developed as an accessible and open source tool that enables you to perform quaternion calculations in Matlab.

YNG's Dice Box - Role Play Tools - A Java Implemented tool to sumlate dice roller for a Role Play Game Session.

Shareware Connection periodically updates pricing and software information of 'A dice roller for Matlab' from company source 'Jonas' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft,  Using 'A dice roller for Matlab' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of A dice roller for Matlab.

New Reviews

PictBear - Nowadays, a majority of PC users resort to digital image editing once in a while. It may be required for retouching image captured in smart phones or for creating an album in Facebook. For some people, tinkering with digital images is a pastime ...

TuckAway Intelligent Email Organizer Pro - Using an email software allow you to do a number of things including managing your address lists, emails and even ending memos, documents and even virtual letters. You can also use it to manage your tasks easily. The email software comes in ...

Sony Movie Studio 13 Platinum - Sony enjoys a prime position in consumer level media software development and its Movie Studio has a large fan following. However, in recent years competition from Adobe and Corel has caught up. The recent overhaul of Sony’s video editor ...

Poser - The concept of 3D animation and modeling may seem amazing to the viewers but those who are into the industry know it is no cakewalk. Majority of 3D animation and modeling software known for some of the amazing animations and CGI work in films ...

Focus One Mind - Technology has made life easier for humans beyond doubt but it comes with the downfalls too. The web serves as the source of entertainment, income and resource for several things for most people. However, the internet can also become a source of ...

Magic Uneraser - Data loss can occur owing to a number of reasons, both within and beyond your control. Whether you have lost data owing to careless of another user or a hard drive failure has occurred, it is important to retrieve the data at any cost. There are ...

PureSync Personal - When you use computers, there is no way you can escape using specialized third party software. These need to be used for various needs including office productivity, web access, taking back-up and ensuring proper synchronization across multiple ...

MacCleanse - Macs are known for their multitasking prowess and near perfect performance over other type of computers. However, after prolonged usage a Mac can also run slower than usual. In such situations, you can try third party clean up and maintenance ...

Quick Heal PCTuner - Performance deficit or unexpected slowdown is something most PC users are acquainted with. Even those with powerful laptops and desktops have to face these issues from time to time. A PC can run slowly when temporary files clutter the HDD or ...

Pixelmator - There is no denying the fact that Mac users are often left with fewer third party app choices than those who use Windows based PCs. However, when it comes to imaging, the situation is a little better. If you want a versatile image editor for Mac ...




New Downloads

Audio Record Edit Toolbox

Audio Record Edit Toolbox is a
multifunctional audio editor
that helps enhance recordings
and any other audio file you
...

AlphaMenu Responsive jQuery
Mega Menu

ALPHAMENU is a user-friendly,
highly customizable and
responsive jQuery mega menu
plugin. It allows you to use
multiple ...

Spiral Generator

Archimedean,Logarithmic,Fermat
,Hyperbolic,Lituus,Spherical
and Polynomial Spirals

T1CSound for Music and
Sound

T1CSound is a simple ActiveX
component for sound generation
using system speaker.

Sentimeter

This plugin allows users to
express sentiments (a la
getsatisfaction.com, e.g.
happy, neutral, outraged etc.)

Alien Voices using the
Texas Instruments C5000 and
C6000 DSP

Two complete applications in
C, one for the Texas
Instruments C5000 fixed-point
processor and the other for
the TI C6000 ...

Theora

Theora is a free and open
video compression format from
the Xiph.org Foundation.

PHP Running Management

PHP Running Management or
phpRunMan is a set of scripts
for runners.

Newscoop

Newscoop is a web publishing
system that can bring
newspaper or magazine content
to the online world

MATLAB Programming Example
for Agilent's U2600A USB
Modular (DAQ) Digital IO
module

The U2651A module is slotted
into the U2781A USB Chassis.

Nonlinear Fit of
Michaelis-Menten model

The program determines the
constants Rmax and Km of the
Michaelis-Menten model using
data given in Fundamentals of
...

Mad Bomber

Mad Bomber game challenges you
to catch bombs before they hit
the ground and explode.