Added common interface for distributions
This commit is contained in:
1 parent
bc68dd0971
commit
cde75c557d
1 file changed
+12
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user