I create an application in which I want to give the unique password to the user. How can I generate unique number in C# language all the time?
plz help me..
Generate Unique Number in C#
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Sep 16, 2012, 8:36 PM EDT
Try the below code from msdn
using System; class Sample { public static void Main() { Guid g; g = Guid.NewGuid(); Console.WriteLine(g); Console.WriteLine(Guid.NewGuid()); } }Akkiraju IvaturiRank #473 · 5.3K reputationPosted Sep 16, 2012, 8:51 PM EDT