This is a discussion on How to generate word or password randomly? within the C# Programming forums, part of the Software Development category; How to generate word or password randomly?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi.. You can try the below way.. This is the easiest and simplest way to generate the word or password randomly. string schars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW XYZ"; string name = string.Empty; Random rand = new Random(DateTime.Now.Millisecond); while (name.Length < 6) name += schars[rand.Next(0, schars.Length)]; |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to generate nodes of XML in the required format? | poornima | ASP and ASP.NET Programming | 2 | 02-14-2008 09:17 PM |
| Crack a password protected word document using C#? | $enthil | C# Programming | 3 | 11-19-2007 11:33 PM |
| How do I generate a random number from php? | itbarota | PHP Programming | 2 | 09-25-2007 08:57 AM |
| How to generate random password generator.using javascript.? | itbarota | HTML, CSS and Javascript Coding Techniques | 1 | 07-26-2007 12:42 AM |
| How do I generate a random number from php? | kingmaker | PHP Programming | 2 | 07-24-2007 02:56 AM |