Generate random alphanumeric string of length = 6

Posted by Raj.Trivedi under ASP.NET on 9/9/2014 | Points: 10 | Views : 1171 | Status : [Member] [MVP] | Replies : 1
Hello Team,

I am looking out to generate a code of length = 6 where the first 2 will be alphabets and next 4 will be random numbers

this is the pattern i am looking for

AX-1234

The alphabets and numbers should not be repeated and should be randomly generated

Regard's
Raj.Trivedi
"Sharing is Caring"
Please mark as answer if your Query is resolved



Responses

Posted by: Bandi on: 9/10/2014 [Member] [MVP] Platinum | Points: 25

Up
0
Down
refer the below link and tweet the code as per your requirement
http://www.c-sharpcorner.com/UploadFile/mahesh/RandomNumber11232005010428AM/RandomNumber.aspx

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Raj.Trivedi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response