Skip to content

Repository files navigation

WTIntExtensions

CI StatusVersionLicensePlatform

IMPORTANT

2019.11.30: This project has been deprecated since the Swift Standard Library now has precisely the functionality that this library provides.

What

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->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, trupwl@gmail.com

License

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

About

This project has been deprecated.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages