basis for random subsystem

This commit is contained in:
2024-08-22 03:09:53 +10:00
parent b7dba429cf
commit 394e340f09
5 changed files with 45 additions and 15 deletions

View File

@ -0,0 +1,8 @@
public protocol RandomProvider {
associatedtype Output: FixedWidthInteger
static var min: Output { get }
static var max: Output { get }
mutating func next() -> Output
}