PDA

View Full Version : Looking for a Die-Rolling program



Stille_Nacht
2013-10-12, 09:50 PM
Specifically one that takes typed interface, it's much faster and more convenient to use usually.
EX:
"/roll 2d32+4" and it returns "37"

To be honest i'm not really sure where to find such a program, and i am also sorely lacking in dice. and, being a poor college student, i dont have enough money that buying 4 of each type of dice is conveniently within my spending

Tim Proctor
2013-10-13, 12:26 AM
This may be against forum rules but with all the links to other sits, I don't think it will.

Pen and Paper Games, chat room has a dice program that works exactly like that. I'd just pop in there and find an unused room and start rolling dice.

TuggyNE
2013-10-13, 02:28 AM
Specifically one that takes typed interface, it's much faster and more convenient to use usually.
EX:
"/roll 2d32+4" and it returns "37"

Technically, you can do this with AnyDice (http://anydice.com/); type in output 2d32+3 named "Big Dice", switch to Roller mode, select Big Dice from the menu, and generate however many rolls.

Not, of course, that this is particularly fast to set up initially, but it is very fast if you know what all types of rolls you want to make, since you can switch between them and generate multiple at once without retyping.


This may be against forum rules but with all the links to other sits, I don't think it will.

It isn't, although you can ask in Board/Site Issues if you like.

Astral Avenger
2013-10-17, 01:49 PM
If you can run python, you can use this code (spoiled for length):

def Roll(N,X,y=0): # NdX+y y is 0 unless specified (can be negative)
from random import randint #imports python's random integer function
i=1 #counter for number of dice rolled
while(i<=N): #loop to roll N dice
y=y+randint(1,X) #adds 1dX to y
i=i+1 #adds 1 to the # of dice rolled
return j

def RollBig(N,X,Y,z=0): # NdXbY+z Must satisfy Y<=N
from random import randint
i=1 #counter for number of dice rolled
j=[] #list to store rolls
while(i<=N): #loop to roll N dice
j.append(randint(1,X)) #adds the roll to the end of the list
i=i+1 #adds 1 to the # of dice rolled
j=sorted(j) #sorts the list in asscending order
for n in range(1,Y+1): #gets the Y biggest rolls from the list
z=z+j[len(j)-n] # then adds them to z
return z

def RollSmall(N,X,Y,z=0): #same as RollBest except chooses the smallest
from random import randint # rolls instead of the biggest
i=1
j=[]
while(i<=N):
j.append(randint(1,X))
i=i+1
j=sorted(j)
for n in range(1,Y+1):
z=z+j[n]
return z

def RollList(N,X): #NdX
from random import randint
i=1 #Counter and list as RollBig & Roll Small
j=[]
while(i<=N):
j.append(randint(1,X))
i=i+1
return sorted(j) #Sorts the list in asscending order
Wrote it myself just for kicks, but if it helps then :smallbiggrin: