Re: Random character String
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