||[Nov. 19th, 2009|08:45 pm]
Anyone have a suggestion for a good RNG or dice-rolling app? I don't need fancy graphics or anything, just some solid software.|
from random import randrange
def roll(count, size = None):
if size is None:
size = count
count = 1
return sum(randrange(1, size+1) for k in range(count))
I also have an assignment due Monday that's a full strength infix parser, and it includes the "d" operator. It's built into a web page. Not much, won't julienne fries or keep track of initiative, but it's something.
I've never used one I didn't write.
If you need one for your G1, I use DroidDice. It's on the Market.
Cool, thanks. I guess I forgot to mention the G1 thing; as I was writing on the G1 at the time, it seemed obvious for reasons passing understanding.
Or maybe because of my previous post, I dunno.
Is there a python interpreter for android yet? :)