• 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
Select some item of...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Select some item of...


  • Subject: Select some item of...
  • From: Peter Beentje <email@hidden>
  • Date: Mon, 3 Nov 2003 21:00:01 +0000

I've written a couple of scripts that select a randomly selected item from a load of items (eg "set lineA to some paragraph of document.txt") and do various things with them.
In Jaguar the random generator reset every time I restarted - and changing a single line of the selected document would mean I got a different run of results.
In Panther, the same 'random' lines from the documents are generated every time - the RNG resets every time I use the script.

Is there any way of getting a seed from another application for the RNG that would lead it to a more truly randomly selected line?

-Pete
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Select some item of...
      • From: Emmanuel <email@hidden>
    • Re: Select some item of...
      • From: Michelle Steiner <email@hidden>
    • Re: Select some item of...
      • From: Peter Beentje <email@hidden>
  • Prev by Date: Problem with text items and german umlauts
  • Next by Date: Re: Select some item of...
  • Previous by thread: Re: Problem with text items and german umlauts
  • Next by thread: Re: Select some item of...
  • Index(es):
    • Date
    • Thread