Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.013.139 Times

A dice roller for Matlab 1.0

  Date Added: August 30, 2013  |  Visits: 416

A dice roller for Matlab

Report Broken Link
Printer Friendly Version


Product Homepage
Download (42 downloads)



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 rolldetails: individual rolls (cell array with results for each dice in the inputREMARKS (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.

Requirements: No special requirements
Platforms: Matlab
Keyword: Abilities Array Attempts Character Errico Gamesoutput Generate Individual Inputremarks Logarithm Output Power Printed Requested Results Roleplaying Rolldetails Screen
Users rating: 0/10

License: Shareware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


A DICE ROLLER FOR MATLAB RELATED
Development Tools  -  Normalize Array Row Wise 1.0
No error checkinga very basic function easy to understandGiven an array X of size [m,n]output is an array of size [m,n]the rows of the output array sum to 1
10 KB  
Development Tools  -  fftnoise - generate noise with a specified power spectrum 1.0
USAGE: noise=fftnoise(f[,Nseries]) INPUTS: f: the fft of a time series (must be a column vector) Nseries: number of noise series to generate. (default=1) OUTPUT: noise: surrogate series with same power spectrum as f. (each column is a surrogate)....
10 KB  
Network & Internet  -  django-bootstrap-form 2.0.3
Generate twitter-bootstrap form output for django form A django template tag to work with twitter bootstrap ( http://twitter.github.com/bootstrap/ )
10.24 KB  
Utilities  -  Easy Options 1.0
Open Windows options with a mouse clickAvailable options to open:- Add / Remove Program- Date and Time- Extra Abilities- Internet- Language and Region- Modem and Telephony- Mouse- Network Connections- Power- Screen- Sound and Audio- System- Users...
193 KB  
Network & Internet  -  Pagelets Technology 3.2.21
Pagelets Technology project allows developers to embed Java scripting elements inside of text documents in order to generate dynamic text-based output. The idea and functionality behind Pagelets is very similar to Java Server Pages with one huge...
1.6 MB  
Programming  -  Chaperon 1.0
Chaperon is a LALR(1) parser, which parse structured text documents and generate XML documents as output. It includes a parser generator like yacc and a regex scaner like lex. As input use Chaperon a grammar written in XML.
732.22 KB  
Development Tools  -  Generate Arrays 1.0
Two simple functions to convert a Matlab array in a set of instructions for LaTeX or C. The functions generate a string that can be printed in the Matlab command window and the copied and pasted into your code.
10 KB  
Accounting Tools  -  AnyMini C: Character Count Program 5
AnyMini C is automatic character count software. It is character count program for all common file formats, which supports .DOC, .RTF, .XLS, .PPT, .PPS, .HTM, .CSV, . After character count is completed, you can: view character count results...
3.06 MB  
Shell & Desktop  -  Alphabet Soup 0.0.9
Alphabet Soup project attempts to determine a number of things about the shapes of letters in several different writing systems. First, it hypothesizes a set of basic building blocks that all letters are built up from. Second, it hypothesizes...
614.4 KB  
Mathematics  -  Abilities BuilderWhole Numbers Plus 2.0
Improve whole number computation skills from simple to complex problems. Math facts exercises are included. Randomly generated problems are structured and worked out number by number as you would on paper. Generate printed worksheetsthat reinforce...
6.59 MB  
NEW DOWNLOADS IN SCRIPTS, GAMES
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Games  -  Propagation of Uncertainty 1.0
Handy little function, for those of you in lab classes where they are sticklers for error. (or for those of you that are actual scientists even...!).Propagation of uncertainty is a really slick formula, but its a massive pain to do by hand. this...
10 KB  
Games  -  Another Rule Based Sudoku Solver 1.0
If rules don't produce a solution, the program uses recursive method for the last resort.Usage:>> ARBSS('SDK1.txt')
10 KB  
Games  -  Matlab Mastermind 1.1
The fourth MATLAB Programming Contest, MasterminddlT«, ran from September 17-21, 2001.The challenge was to write an algorithm to solve a variation of the classic MasterminddlT« puzzle. Each entry did its best to determine unknown sequences...
20.48 KB  
Games  -  Sudoku16(Solver) 1.0
This is an inhanced version for Sudoku(Solver) which can be used to sovle 16*16 puzzles.Ideas of the program is the same as Sudoku(Solver).the problem is solved through 2 stepsstep1: with SudokuMethod1 in each square, list all the possible numbers...
10 KB  
Games  -  Interactive games: Space invaders + Breakout 1.0
Gameplay 1.0If you have Windows + MatLab (>6.0) + Webcam + Free time you are very lucky!Yes, because you can play Space Invaders or Breakout interactively so? move your body!You just need to download and unzip this file in one directory. The zip...
3.39 MB