• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Dice
  • Next by Date: Re:Dice
  • Previous by thread: Dice
  • Next by thread: Re:Dice
  • Index(es):
    • Date
    • Thread