This is a simple generator to create random data.
- Bytes
- Cities
- Countries
- Credit Card Numbers
- DateTime
- Email Addresses
- First/Last Names
- Guids
- IBANs
- IP Addresses (V4 and V6)
- Lorum Ipsum Text
- MAC Addresses
- NaughtyStrings
- Numbers (integer, long, float, double, byte, ...)
- Text Regex Patterns
- Words
// Generate a random text with a Regular expression
var randomizerTextRegex = RandomizerFactory.GetRandomizer(new FieldOptionsTextRegex { Pattern = @"^[0-9]{4}[A-Z]{2}" });
string textRegex = randomizerTextRegex.Generate();
// Generate a random first name
var randomizerFirstName = RandomizerFactory.GetRandomizer(new FieldOptionsFirstName());
string firstName = randomizerFirstName.Generate();
// Generate a random text (no numbers or special characters allowed)
var randomizerText = RandomizerFactory.GetRandomizer(new FieldOptionsText { UseNumber = false, UseSpecial = false });
string text = randomizerText.Generate();
You can also use a UI to generate SQL insert table statements.
- https://github.com/gustavofrizzo/CreditCardValidator
- https://www.cambiaresearch.com/articles/13/csharp-randomprovider-class
- https://www.codeproject.com/Articles/423229/CsharpRandomStringGenerator
- https://github.com/SaladLab/NetLegacySupport/tree/master/core/ConcurrentDictionary/System/Collections/Concurrent
- https://raw.githubusercontent.com/SimonCropp/NaughtyStrings/master/src/NaughtyStrings/TheNaughtyStrings.cs