Answers for "swift system random"

3

random number swift

let randInt = Int.random(in: 0...100)

// The range can be a closed (a...b) or half open (a..<b) range.
Posted by: Guest on June-16-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language