generate random text

Class library usage, coding and language questions.
akommalapati
Posts: 21
Joined: Wed Dec 07, 2011 2:54 pm
Location: India

generate random text

Post by akommalapati » Wed Dec 14, 2011 1:06 pm

Hi,

I have requirement to create users on a web site for that username and email should be unique.
Can u please give me a code snippet for generating random text for username with length as 12 (alphanumeric).

Thanks
Ajay

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: generate random text

Post by Support Team » Thu Dec 15, 2011 5:27 pm

Hi,

Create a CodeModule and use the method

Code: Select all

StringTools.GenerateRandomeAsciiString
for that.

Keep in mind that this is an internal method which could change.

Regards,
Martin
Ranorex Support Team
.
Image