• 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: Random character String
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Random character String


  • Subject: Re: Random character String
  • From: Martin Orpen <email@hidden>
  • Date: Thu, 17 Mar 2005 22:38:19 +0000

on 17/3/05 3:16 am, David C Andrews at email@hidden wrote:

> Perhaps faster:
> set x to {}
> repeat (random number from 8 to 10) times
>     set end of x to some item of "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
> end repeat
> x as text --> "JUEQPJBH", "LFOBPXHJI", "TQRVYJPHFA"

Try this one-liner for speed:

    do shell script "jot -r -c 8 A Z | rs -g 0"

Or go crazy:

    do shell script "jot -r -c 800 A Z | rs -g 0 8"

;-)

--
Martin Orpen


 _______________________________________________
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: 
 >Re: Random character String (From: David C Andrews <email@hidden>)

  • Prev by Date: Re: iCal organization with dates & events & lists....
  • Next by Date: Re: iCal organization with dates & events & lists....
  • Previous by thread: Re: Random character String
  • Next by thread: Re: Random character String
  • Index(es):
    • Date
    • Thread