468,168 Members | 1,653 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,168 developers. It's quick & easy.

Randomize string

Any function to randomize strings?

thank you,
Samuel
May 30 '06 #1
1 1347

"Samuel Shulman" <sa************@ntlworld.com> wrote in message
news:uH**************@TK2MSFTNGP03.phx.gbl...
Any function to randomize strings?

thank you,
Samuel


What kind of random strings do you want? Randomizing strings that contains
specific data isn't hard to do (such as allowing lowercase/uppercase +
punctuation and numbers). Just create the list of allowable characters as a
character-array, determine the length of the string you want to create, loop
creating a new random number (min/max set to lower/upper bounds of the
array) and build the string base on the index (random number created) of the
char in the array :)

HTH,
Mythran

May 30 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Fieldmedic | last post: by
3 posts views Thread by Gaffer | last post: by
1 post views Thread by Ellen Manning | last post: by
4 posts views Thread by Mr. x | last post: by
1 post views Thread by Badass Scotsman | last post: by
reply views Thread by kamranasdasdas | last post: by
reply views Thread by gcreed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.