Added common interface for distributions

This commit is contained in:
Thorsten Sommer 2020-09-26 00:06:03 +02:00
parent bc68dd0971
commit cde75c557d

View File

@ -0,0 +1,12 @@
using System.Threading;
using System.Threading.Tasks;
namespace FastRng.Distributions
{
public interface IDistribution
{
public IRandom Random { get; set; }
public Task<double> GetDistributedValue(CancellationToken token);
}
}