Improve storage
This commit is contained in:
@ -4,4 +4,11 @@ extension Int {
|
||||
static func random() -> Int {
|
||||
random(in: Int.min...Int.max)
|
||||
}
|
||||
|
||||
mutating func increment(_ increment: Bool) {
|
||||
guard increment else {
|
||||
return
|
||||
}
|
||||
self += 1
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user