Added common interface for distributions
This commit is contained in:
parent
bc68dd0971
commit
cde75c557d
12
FastRng/Distributions/IDistribution.cs
Normal file
12
FastRng/Distributions/IDistribution.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user