Re: Random character String
Re: Random character String
- Subject: Re: Random character String
- From: Todd Geist <email@hidden>
- Date: Wed, 16 Mar 2005 15:09:54 -0800
Thanks everyone!
On 3/16/05 11:13 AM, "Martin Orpen" <email@hidden> wrote:
> on 16/3/05 7:04 pm, Michelle Steiner at email@hidden wrote:
>
>> set foo to ""
>> set bar to random number from 8 to 10
>> repeat bar times
>> set foo to foo & (ASCII character of (random number from 65 to 90))
>> end repeat
>> foo
>
> This is 31 bytes better:
>
> set x to ""
> repeat (random number from 8 to 10) times
> set x to x & some item of "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
> end repeat
>
>
> :-)
--
Todd Geist
______________________________________
G e i s t i n t e r a c t i v e
_______________________________________________
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