Skip to content

wltrup/Swift-WTIntExtensions

Repository files navigation

WTIntExtensions

CI Status Version License Platform

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:

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.

About

This project has been deprecated.

Resources

License

Stars

Watchers

Forks

Packages

No packages published