Tweet
SIGN UP
MEMBER LOGIN:
TECHNOLOGIES
Active Directory in VB.NET
ADO.NET in VB.NET
Algorithms and VB.NET
ASP.NET AJAX in VB.NET
ASP.NET Controls in VB.NET
ASP.NET using VB.NET
Assemblies in VB.NET
COM Interop in VB.NET
Cryptography in VB.NET
Crystal Reports in VB.NET
Database & DBA
Deployment in VB.NET
Design & Architecture
DirectX with VB.NET
Enterprise Development
Exception Handling in VB.NET
Games Programming in VB.NET
GDI+ in VB.NET
General
LINQ with VB.NET
Mobile Development in VB.NET
Multithreading in VB.NET
Networking with VB.NET
Office and VB.NET
Printing in VB.NET
Remoting in VB.NET
Reports in VB.NET
Security in VB.NET
Silverlight using VB.NET
Speech in VB.NET
Strings, Arrays in VB.NET
Tablet PC
Tablet PC with VB.NET
VB.NET Articles
VB.NET FAQ
VB.NET How do I
VB.NET Language
VB.NET Tutorials
VBA
Visual Basic 11
Visual Basic 2010
Visual Basic Language
WCF with VB.NET
Web Applications in VB.NET
Web Forms with VB.NET
Web Service in VB.NET
Windows Controls in VB.NET
Windows Forms with VB.NET
Windows Service in VB.NET
Workflow in VB.NET
WPF using VB.NET
XAML in VB.NET
XML in VB.NET
FORUMS
BLOGS
Use of Excel.AddUnique Method in MS Excel to D ...
Use of PPT.ApplyTheme.BackgroundStyle in MS P ...
Use of PPT.InteractWithChartLocation in MS Pow ...
Simple Web Report With Pivot Table and Linq to ...
Print A Chart into a Byte Stream
Using New Audio Player Class With VB.NET
Display Top Ten Percent Item and bottom Ten pe ...
Use of PPT.ConvertTextToSmartArt in MS PowerP ...
How to Find Backup Folder Data Location Using ...
Calendar Control In WPF
Blog
Generate random strings in array
Posted by
Hirendra Sisodiya
in
Blogs
|
Visual Basic 2010
on
Oct 23, 2010
how to generate random strings with specified length and charecters in array
Tweet
3343
0
0
if you want to generate random strings in array with n length and specified characters than you can use this code:
suppose i want to generate 10 strings in array that contains charecters among (A,B,C,D,E) with length 3.
Dim
chars
As
String
() = {
"A"
,
"B"
,
"C"
,
"D"
,
"E"
,
"F"
}
Dim
tempRandom
As
New
Random
Dim
RandomStrings(10)
As
String
For
i
As
Integer
= 0
To
10
RandomStrings(i) = chars(tempRandom.Next(0, 5)) & chars(tempRandom.Next(0, 5)) & chars(tempRandom.Next(0, 5))
Next
share this blog :
How to define the enumerator in ..
Serialization
post comment
Sponsored by
Become a Sponsor
More Blogs from this Blogger
Code Snippet for detaching SQL database programmatically in vb.net
String.contains method in vb.net
Default declaration of Namespaces in XML
advantages of xml
Generate random strings in array
Option Explicit statement in vb.net
FormBorderStyle In .Net
How to get all columns name of Sql table in one string in vb.net
Floating point Data types
Difference between class and struct
View All
Latest Blogs
Second Life: Land of the WEAK home of the BROKEN
use of datagrid and sum column in datagrid
Retrieving content of other page using C#
Caching in ASP.NET
Reading a text file in Asp.net
Read Number from a String
Populate combobox from excel
Edit, update and cancel the records in the datagrid.
Sort data in datagrid
Streaming in WCF
View All
Sponsored by
Become a Sponsor