Latest 1.0.3
Homepage https://github.com/wltrup/Swift-WTIntExtensions
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

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.

Latest podspec

{
    "name": "WTIntExtensions",
    "version": "1.0.3",
    "summary": "WTIntExtensions adds methods to generate pseudo-random integer values.",
    "description": "WTIntExtensions adds methods to generate uniformly-distributed pseudo-random integer values.",
    "homepage": "https://github.com/wltrup/Swift-WTIntExtensions",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Wagner Truppel": "[email protected]"
    },
    "source": {
        "git": "https://github.com/wltrup/Swift-WTIntExtensions.git",
        "tag": "1.0.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "WTIntExtensions/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This