Re: Get Random number?
Re: Get Random number?
- Subject: Re: Get Random number?
- From: "Daniel Brieck Jr." <email@hidden>
- Date: Tue, 14 Aug 2007 17:47:38 -0400
Jakob,
One AppleScript native method is to use the command
random number
It will return a number between 0 and 1 by default, there appears to
be a way to seed is so that it goes between two non-negative integers
according to this book "AppleScript The Definitive Guide" , but I
can't seem to find out how to do that.
"random number between x and y" does not WORK as I guessed it might.
Daniel J. Brieck Jr.
On Aug 14, 2007, at 5:05 PM, Jakob Peterhänsel wrote:
Hi All,
Anyone have a method to get a random number in AS?
Native or via do shell script ?
Jakob Peterhänsel
"Be a part of the Love Generation - carry a smile, not a gun."
- JP, May 2006
Email: email@hidden
AIM: Marook
Phone: +45 29687104
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden