Skip to content

vallacy/dice-roller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

DnD Dice Roller

An R Script for rolling dice, including dice commonly used in DnD.

Roll a d4, d6, d8, d10, d12, or d20.

#roll a d20 once
sample(1:20, 1, replace=T)

You can also create a histogram of your rolls to check that your samples are (roughly) uniformly distributed.

#create an object called d20 that stores all of your rolls
d20 <- sample(1:20, 1, replace=T)
d20

#create a histogram of your rolls
hist(d20)

About

Simple R Script for rolling dice.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages