Info
Version: | 1.0.0 |
Author(s): | Niklas Blomqvist |
Last Update: | Wednesday, January 8, 2020 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/blomqvist/Blomko.Lib |
NuGet Url: | https://www.nuget.org/packages/Blomko.Lib.WeightedRandom |
Install
Install-Package Blomko.Lib.WeightedRandom
dotnet add package Blomko.Lib.WeightedRandom
paket add Blomko.Lib.WeightedRandom
Blomko.Lib.WeightedRandom Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
Can be used when certain values should occure more or less than when using Random. Values and distribution weight is supplied into the constructor.
WeightedRandom.Next() can then be called to get the next value.