CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

WTIntExtensions 1.0.3

WTIntExtensions 1.0.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Dec 2016
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Wagner Truppel.



  • By
  • Wagner Truppel

WTIntExtensions

What

WTIntExtensions adds methods to generate uniformly-distributed pseudo-random integer values:

public static func random(_ a: Int, _ b: Int) -> Int
public static func randomNonZero(_ a: Int, _ b: Int) throws -> Int

Why

Because who doesn’t keep re-implementing random number generators time and again?

Tests

WTIntExtensions adds 2 extensions, fully tested by 4 tests with 100% coverage.

Changelog

Changes to WTIntExtensions are listed here.

Installation

WTIntExtensions is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "WTIntExtensions"

Author

Wagner Truppel, [email protected]

License

WTIntExtensions is available under the MIT license. See the LICENSE file for more info.