2019.11.30: This project has been deprecated since the Swift Standard Library now has precisely the functionality that this library provides.
WTIntExtensions adds methods to generate uniformly-distributed pseudo-random integer values:
publicstaticfunc random(_ a:Int, _ b:Int)-> Int
public static func randomNonZero(_ a:Int, _ b:Int)throws->IntBecause who doesn't keep re-implementing random number generators time and again?
WTIntExtensions adds 2 extensions, fully tested by 4 tests with 100% coverage.
Changes to WTIntExtensions are listed here.
WTIntExtensions is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod"WTIntExtensions"Wagner Truppel, trupwl@gmail.com
WTIntExtensions is available under the MIT license. See the LICENSE file for more info.