Coder Social home page Coder Social logo

tryatsoftware / randomizer Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 1.0 186 KB

TryAtSoftware.Randomizer is a library that should simplify the generation process of random values. We offer a reusable methodology that can be applied to every projects of yours.

License: MIT License

C# 100.00%
dotnet generator library random random-generation random-number-generators randomizer testing-tools

randomizer's People

Contributors

tonytroeff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

randomizer's Issues

Add a `UriRandomizer`

Describe your idea
I need something ready that should be able to generate me random Uris.

Randomize instantiation

During the instantiation of an entity, its constructor may require additional random data. Consider what architecture changes would be required in order to simplify the current process.

Change the `ComplexRandomizer` interface

Instead of AddRandomizationRule and OverrideRandomizationRule (and the corresponding extension methods), there should be a single Randomize method. We believe that by doing so, the syntax will become much more simpler.

This would be a breaking change,

Prevent `System.OverflowException`

Error Message:
System.OverflowException : Negating the minimum value of a twos complement number is invalid.
Stack Trace:
at TryAtSoftware.Randomizer.Core.Helpers.RandomizationHelper.RandomInteger(Int32 inclusiveBottomBound, Int32 exclusiveUpperBound)
at TryAtSoftware.Randomizer.Core.Helpers.RandomizationHelper.GetRandomStringCombination(Int32 length, IReadOnlyList`1 possibleChars)
at TryAtSoftware.Randomizer.Core.Helpers.RandomizationHelper.GetRandomString(Int32 length, String charactersMask)
at TryAtSoftware.Randomizer.Core.Helpers.RandomizationHelper.GetRandomString()

Update workflows

  • Update the CI workflow
  • Whenever a new version is published, the README.md file content should be used automatically

Optimize the instance building process

The usage of reflection should be reduced to minimum. Information about the constructors should be retrieved once per type.
No Activator.CreateInstance calls should exist. Use compiled expressions.

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.