Skip to content

Commit 4747102

Browse files
lm2343635kzaher
authored andcommitted
Make the random number range larger.
1 parent 8abe183 commit 4747102

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Examples/Example/Example3_TableViewEditing.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ struct SectionedTableViewState {
140140

141141
extension TableViewEditingCommand {
142142
static func addRandomItem() -> TableViewEditingCommand {
143-
let randSection = Int(arc4random_uniform(UInt32(3)))
144-
let number = Int(arc4random_uniform(UInt32(100)))
143+
let randSection = Int.random(in: 0...2)
144+
let number = Int.random(in: 0...10000)
145145
let item = IntItem(number: number, date: Date())
146146
return TableViewEditingCommand.AppendItem(item: item, section: randSection)
147147
}

0 commit comments

Comments
 (0)