• 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: Get Random number?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Get Random number?
      • From: "Mark J. Reed" <email@hidden>
    • Re: Get Random number?
      • From: Jakob Peterhänsel <email@hidden>
References: 
 >Get Random number? (From: Jakob Peterhänsel <email@hidden>)

  • Prev by Date: Re: Get Random number?
  • Next by Date: Re: Get Random number?
  • Previous by thread: Re: Get Random number?
  • Next by thread: Re: Get Random number?
  • Index(es):
    • Date
    • Thread