mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
basis for random subsystem
This commit is contained in:
8
Sources/Voxelotl/Random/RandomProvider.swift
Normal file
8
Sources/Voxelotl/Random/RandomProvider.swift
Normal 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
|
||||
}
|
Reference in New Issue
Block a user