I need to generate random strings in vb.net, which must consist of (randomly chosen) letters A-Z (must be capitalized) and with random numbers interspersed. It needs to be able to generate them with a set length as well.
Thanks for the help, this is driving me crazy!
How about:
Try this, it's the top answer already converted to VB!
If you can convert this to VB.NET (which is trivial) I'd say you're good to go (if you can't, use this or any other tool for what's worth):
Then all you've got to do is:
Why don't you randomize a number 1 to 26 and get the relative letter.
Something like that:
Edit: ChrW added.
Edit2: To have numbers as well
C#
VB.Net
Here's a utility class I've got to generate random passwords. It's similar to JohnIdol's Typing Monkey, but has a little more flexibility in case you want generated strings to contain uppercase, lowercase, numeric or special characters.
To use it:
This code is in C# but should be fairly easy to convert to VB.NET using a code converter.