Giter Site home page Giter Site logo

vikashchauhan51 / random-generator Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 7.47 MB

A library which generates random passwords, numbers, sentences, paragraphs and texts

License: MIT License

C# 100.00%
random random-generation random-number-generator random-paragraph-generator random-password-generator random-sentences random-text-generation random-text-generator

random-generator's Introduction

RandomGenerator

A library which generates random passwords, numbers, sentences, paragraphs and texts.

RandomGenerator Logo

NuGet

Install via NuGet: Install-Package RandomGenerator

Nuget Downloads

Or click here to go to the package landing page

It is Compatible with .NET Core 6.0+.

Documents

Basic usage

// generate random sentence.
 var generator = new RandomSentenceGenerator();
 // maximum number of words in the sentence. Here, the number of words depends on the configured part of speech. if nothing is configured then its return empty string. Defualt all part of speech are configured.
 var result = generator.Generate(10);
//generate random paragraph.
var generator = new RandomParagraphGenerator();
// this paragraph contains 3 sentences with words between 5 to 10. The number of words depends on the configured part of speech. if nothing is configured then its return empty string. Defualt all part of speech are configured.
var result = generator.Generate(3, 5, 10);
//generate random text.
var generator = new RandomTextGenerator();
//this text contains 3 paragraphs with sentences between 3 to 5 to each paragraph and each sentence contains words between 10 to 15. Here, the number of words depends on the configured part of speech. if nothing is configured then its return empty string. Defualt all part of speech are configured.
var result = generator.Generate(3, 3, 5, 10, 15);
// generate random number string (0-9) of specific length.
new RandomStringGenerator().GenerateNumberString(15)
// generate random alphabetic string (a-z,A-Z) of specific length.
new RandomStringGenerator().GenerateAlphabeticString(15)
// generate random alphnumeric string (a-z,A-Z,0-9) of specific length.
new RandomStringGenerator().GenerateAlphaNumbersString(15)
// generate random alphnumeric string (a-z,A-Z,0-9) with special characters of specific length.
new RandomStringGenerator().GenerateString(15)
// generate random password of specific length. this will generate password string up to 256 characters.
new RandomPasswordGenerator().Generate(10);
// generate random number of specific length.
// this function can generate a random number of length between 1 to 10.
RandomNumberGenerator.AbsoluteNumber(10);
// generate random number of specific length.
// this function can generate a random number of length between 1 to 19.
RandomNumberGenerator.AbsoluteLong(10);
// generate random unique number.
RandomNumberGenerator.Number();
// generate random password of specific length with configuration.
var password = new RandomPasswordGenerator()
            .IncludeNumeric(true)
            .IncludeLowercase(true)
            .IncludeUppercase(true)
            .IncludeSpecial(true)
            .Generate(10);

random-generator's People

Contributors

semantic-release-bot avatar vikashchauhan51 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

random-generator's Issues

The automated release is failing 🚨

🚨 The automated release from the main branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this πŸ’ͺ.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the main branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


publish to registry https://api.nuget.org/v3/index.json failed

dotnet nuget push -s https://api.nuget.org/v3/index.json -k [redacted] /home/runner/work/random-generator/random-generator/out/*.nupkg


Good luck with your project ✨

Your semantic-release bot πŸ“¦πŸš€

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.