iOS app for custom tables / dice results?
April 21, 2014 12:13 AM   Subscribe

Looking for an iOS app that will let me set up a table (of dice scores and results), then roll on that table by pushing a button. For example, I might set up a table 'FOO': 1-2 = A, 3-4 = B, 5-6 = C. I could then push the FOO button, and it'd roll a d6 and give me A, B or C. Does this sort of thing exist?
posted by obiwanwasabi to Sports, Hobbies, & Recreation (2 answers total) 2 users marked this as a favorite
 
Run an iOS SSH client to connect to your OS X computer, on which you have installed R.

In R, for example, to sample throwing a six-side die and to map the result to a letter:

> result <- sample(1:6, 1); cat(ifelse(result < 3, "A\n", ifelse(result < 5, "B\n", "C\n")))

Or:

> map <- c('A', 'A', 'B', 'B', 'C', 'C')
> result <- sample(1:6, 1); cat(paste(map[val],"\n"))


You can turn this into a function that you load and run on demand.
posted by Blazecock Pileon at 12:40 AM on April 21, 2014


Dicenomicon can be made to do that. Look at the Formulas section of their docs.
posted by siskin at 1:40 AM on April 21, 2014 [1 favorite]


« Older A Watched Phone Never Rings   |   How to set rhinestones in resin Newer »
This thread is closed to new comments.