Created
December 1, 2011 11:29
-
-
Save codingfreak/1416021 to your computer and use it in GitHub Desktop.
My code generating only numbers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using Fare; | |
| namespace DbFillerConsole | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var pattern = @"[a-z0-9]{3}"; | |
| var conv = new Xeger(pattern); | |
| Console.WriteLine(conv.Generate()); | |
| // result will something like 123, 324 or 938 without letters | |
| Console.ReadKey(); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment