Re: Dice
Re: Dice
- Subject: Re: Dice
- From: Martin Crisp <email@hidden>
- Date: Tue, 26 Oct 2004 14:58:53 +1100
- Organization: Tesseract Computing
On Tue, 26 Oct 2004 14:37:10 +1100, Kevin wrote
(in message <email@hidden>):
> How does a dice generate diffrent #? What is the command? Any
> programs that has source code that I could look at? Thanks a lot!
for a six-sided die:
random number from 1 to 6
I have a dice-rolling script that handles simple arithmetic with
dice:
e.g. given D3+2d6-DD20
it calculates: random number from 1 to 3 + random number from 1 to
6 + random number from 1 to 6 - random number from 1 to (random
from 1 to 20)
It's buried in the .adiumscript bundle here:
http://www.adiumxtras.com/index.php?a=xtras&xtra_id=597
[download, unzip, control-click on the bundle, show contents... the
resources folder contains %_roll.scpt => the 'on substitute()'
handler is required for Adium...]
No doubt it could be better, but it seems to work ;-)
Have Fun
Martin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Dice (From: Kevin <email@hidden>) |