nextInt(upperBound:)
Generates and returns a new random integer less than the specified limit.
Declaration
func nextInt(upperBound: Int) -> IntParameters
- upperBound:
A limit on the values of random numbers to generate.
Return Value
A new random integer greater than or equal to zero and less than the value of the upperBound parameter.