Re: Random character String
Re: Random character String
- Subject: Re: Random character String
- From: Michelle Steiner <email@hidden>
- Date: Wed, 16 Mar 2005 12:04:29 -0700
On Mar 16, 2005, at 9:59 AM, Todd Geist wrote:
I need a routine to generate a Random string of characters. It should
be 8
to 10 letters long and I think I want to only include UPPERCASE
letters.
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
--
I am only one, but still I am one. I cannot do everything, but still I
can do something; and because I cannot do everything, I will not refuse
to so something I can do. --Edward Everett Hale
_______________________________________________
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