Home All Groups Group Topic Archive Search About
Author
30 May 2006 5:12 PM
Samuel Shulman
Any function to randomize strings?

thank you,
Samuel

Author
30 May 2006 5:55 PM
Mythran
"Samuel Shulman" <samuel.shul***@ntlworld.com> wrote in message
news:uHF1ywAhGHA.1856@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