Defined basic interface
This commit is contained in:
1 parent
dfd38958db
commit
c96d109824
1 file changed
+16
@@ -0,0 +1,16 @@
|
|||||||
|
using System.Threading;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace FastRng
|
||||||
|
{
|
||||||
|
public interface IRandom
|
||||||
|
{
|
||||||
|
public Task<uint> NextNumber(uint rangeStart, uint rangeEnd, CancellationToken cancel = default(CancellationToken));
|
||||||
|
|
||||||
|
public Task<ulong> NextNumber(ulong rangeStart, ulong rangeEnd, CancellationToken cancel = default(CancellationToken));
|
||||||
|
|
||||||
|
public Task<float> NextNumber(float rangeStart, float rangeEnd, CancellationToken cancel = default(CancellationToken));
|
||||||
|
|
||||||
|
public void StopProducer();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user