The GW-Scripting list is a discussion list for information regarding the development and use of Window-Eyes scripts. Any subscriber of the GW-Scripting list has the ability to post on-topic messages.

From:

 Aaron Smith

Subject:

 Re: Randomizer

Date:

 Sat, Apr 3, 2010 6:30:04 pm
Dim a : a = Array("Tom", "Jerry", "Ren", "Stimpy", "Yakko", "Wakko",
"Dot")
Speak a(Int((UBound(a) - LBound(a) + 1) * Rnd + LBound(a)))

Aaron

On 4/3/2010 7:16 PM, Tylers Scripting wrote:
Hey guys,
I was wondering, what are some lines of code I can run that will pick a random name with a script?
For example, if you wanted it to pick a random name from Tyler, Gary, Kim, Brittney, and if I had like say 10000 names, how would I do this?
Thanks.
Tyler Juranek


--
Aaron Smith
Product Support Specialist * Web Development
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com

To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.