Skip to content

This is a configurable generator to create random data like Lorum Ipsum Text, Words, Text Patterns, First/Last Names, MAC-Addresses, IP-Addresses, Guids and DateTime.

License

Notifications You must be signed in to change notification settings

StefH/RandomDataGenerator

Repository files navigation

RandomDataGenerator.Net

This is a simple generator to create random data.

NuGet

NuGet Badge

Supported Random Data

  • Text Regex Patterns
  • Lorum Ipsum Text
  • Words
  • First/Last Names
  • Cities
  • Countries
  • IP-Addresses (V4 and V6)
  • IBANs
  • MAC Addresses
  • Email Addresses
  • Guids
  • DateTime
  • Numbers (integer, long, float, double, byte, ...)
  • Bytes

Usage

// 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();

Usage (as SQL Data Generator GUI)

You can also use a UI to generate SQL insert table statements. Random Data Generator - 1

Random Data Generator - 2

Copyright

Referenced files

NuGet dependencies

  • Fare

About

This is a configurable generator to create random data like Lorum Ipsum Text, Words, Text Patterns, First/Last Names, MAC-Addresses, IP-Addresses, Guids and DateTime.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •