×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Rich,
The code to do that would depend on the programming language, of course.
Here's in my words, how I would solve your problem:
- Use a RANDOM - function that's built into the programming language you are
using to return an integer in the range of 1 through 26, e.g., in REXX this
would be N = RANDOM(1,26).
- Have a literal string available, containing the 26 characters of the
alphabet, A through Z
- Use the number returned in N to grab the character in position N from the
literal string and append it to your data area name field.
- Repeat as often as necessary to get the number of characters you want in
your data area name.

HTH
Regards,
Ulrich Krueger


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Rich Loeber
Sent: Monday, October 13, 2008 07:21
To: Midrange Systems Technical Discussion
Subject: Random Alpha String

Does anyone have a technique for generating a random alpha string. I
want
to randomly generate a data area name and I don't want to use numerics if
that can be avoided.

Rich Loeber
Kisco Information Systems
http://www.kisco.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.