We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8abe183 commit 4747102Copy full SHA for 4747102
Examples/Example/Example3_TableViewEditing.swift
@@ -140,8 +140,8 @@ struct SectionedTableViewState {
140
141
extension TableViewEditingCommand {
142
static func addRandomItem() -> TableViewEditingCommand {
143
- let randSection = Int(arc4random_uniform(UInt32(3)))
144
- let number = Int(arc4random_uniform(UInt32(100)))
+ let randSection = Int.random(in: 0...2)
+ let number = Int.random(in: 0...10000)
145
let item = IntItem(number: number, date: Date())
146
return TableViewEditingCommand.AppendItem(item: item, section: randSection)
147
}
0 commit comments