{"id":19310525,"url":"https://github.com/sepppenner/dotneteasyrandom","last_synced_at":"2025-04-22T13:34:24.083Z","repository":{"id":82868622,"uuid":"77278256","full_name":"SeppPenner/DotNetEasyRandom","owner":"SeppPenner","description":"EasyRandom for .Net is an assembly/ library to generate random numbers with the internal Random library from .Net more easy.","archived":false,"fork":false,"pushed_at":"2025-01-05T21:38:51.000Z","size":15819,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T00:24:41.854Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SeppPenner.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-24T10:33:09.000Z","updated_at":"2025-01-05T21:38:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"46df2301-e7e0-468e-8db5-c5a1ca1ad0b0","html_url":"https://github.com/SeppPenner/DotNetEasyRandom","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeppPenner%2FDotNetEasyRandom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeppPenner%2FDotNetEasyRandom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeppPenner%2FDotNetEasyRandom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeppPenner%2FDotNetEasyRandom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SeppPenner","download_url":"https://codeload.github.com/SeppPenner/DotNetEasyRandom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250249125,"owners_count":21399400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T00:24:38.187Z","updated_at":"2025-04-22T13:34:24.078Z","avatar_url":"https://github.com/SeppPenner.png","language":"C#","funding_links":["https://patreon.com/SeppPennerOpenSourceDevelopment","https://paypal.me/th070795"],"categories":[],"sub_categories":[],"readme":"DotNetEasyRandom\n====================================\n\nDotNetEasyRandom is an assembly/ library to generate random numbers with the internal Random library from .Net more easily.\n\n[![Build status](https://ci.appveyor.com/api/projects/status/rq1fsgtfg4n9lfnx?svg=true)](https://ci.appveyor.com/project/SeppPenner/dotneteasyrandom)\n[![GitHub issues](https://img.shields.io/github/issues/SeppPenner/DotNetEasyRandom.svg)](https://github.com/SeppPenner/DotNetEasyRandom/issues)\n[![GitHub forks](https://img.shields.io/github/forks/SeppPenner/DotNetEasyRandom.svg)](https://github.com/SeppPenner/DotNetEasyRandom/network)\n[![GitHub stars](https://img.shields.io/github/stars/SeppPenner/DotNetEasyRandom.svg)](https://github.com/SeppPenner/DotNetEasyRandom/stargazers)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://raw.githubusercontent.com/SeppPenner/DotNetEasyRandom/master/License.txt)\n[![Nuget](https://img.shields.io/badge/DotNetEasyRandom-Nuget-brightgreen.svg)](https://www.nuget.org/packages/HaemmerElectronics.SeppPenner.DotNetEasyRandom/)\n[![NuGet Downloads](https://img.shields.io/nuget/dt/HaemmerElectronics.SeppPenner.DotNetEasyRandom.svg)](https://www.nuget.org/packages/HaemmerElectronics.SeppPenner.DotNetEasyRandom/)\n[![Known Vulnerabilities](https://snyk.io/test/github/SeppPenner/DotNetEasyRandom/badge.svg)](https://snyk.io/test/github/SeppPenner/DotNetEasyRandom)\n[![Gitter](https://img.shields.io/matrix/DotNetEasyRandom_community%3Agitter.im?server_fqdn=matrix.org)](https://matrix.to/#/#DotNetEasyRandom_community:gitter.im)\n[![Blogger](https://img.shields.io/badge/Follow_me_on-blogger-orange)](https://franzhuber23.blogspot.de/)\n[![Patreon](https://img.shields.io/badge/Patreon-F96854?logo=patreon\u0026logoColor=white)](https://patreon.com/SeppPennerOpenSourceDevelopment)\n[![PayPal](https://img.shields.io/badge/PayPal-00457C?logo=paypal\u0026logoColor=white)](https://paypal.me/th070795)\n\n## Available for\n* Net 8.0\n* Net 9.0\n\n## Net Core and Net Framework latest and LTS versions\n* https://dotnet.microsoft.com/download/dotnet\n\n## Basic usage\n```csharp\npublic class ExampleUsage\n{\n    private readonly IEasyRandom _random = new EasyRandom(); //Normal construtor\n\n    private readonly IEasyRandom _random2 = new EasyRandom(12); //Construtor with seed\n\n    public void Test()\n    {\n        _random.Next(); //Function from the \"normal\" Random class\n        _random.Next(12); //Function from the \"normal\" Random class\n        _random.Next(1, 5, IncludeType.None); //Gives back 2, 3 or 4\n        _random.Next(1, 5, IncludeType.StartOnly); //Gives back 1, 2, 3 or 4\n        _random.Next(1, 5, IncludeType.EndOnly); //Gives back 2, 3, 4 or 5\n        _random.Next(1, 5, IncludeType.Both); //Gives back 1, 2, 3, 4 or 5\n        _random.NextBytes(new byte[] {1, 2, 3, 4}); //Function from the \"normal\" Random class\n        _random.NextDouble(); //Function from the \"normal\" Random class\n        _random.NextDoubleExcludedBoth(1.0, 2.0);\n        //Gives back a double value between 1.0 and 2.0 EXCLUDING the borders\n        //(e.g. from 1.0000000000000000000000000000000001 to 1.9999999999999999999999999999999999\n    }\n}\n```\n\n## Install\n\n```bash\ndotnet add package HaemmerElectronics.SeppPenner.DotNetEasyRandom\n```\n\nChange history\n--------------\n\nSee the [Changelog](https://github.com/SeppPenner/DotNetEasyRandom/blob/master/Changelog.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsepppenner%2Fdotneteasyrandom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsepppenner%2Fdotneteasyrandom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsepppenner%2Fdotneteasyrandom/lists"}