Defined basic interface
This commit is contained in:
		
							parent
							
								
									dfd38958db
								
							
						
					
					
						commit
						c96d109824
					
				
							
								
								
									
										16
									
								
								FastRng/IRandom.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								FastRng/IRandom.cs
									
									
									
									
									
										Normal file
									
								
							@ -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();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user