Latest 0.0.1
Homepage https://github.com/aidangomez/RandKit
License MIT
Platforms ios 8.4, osx 10.11
Authors

Random number generation for Swift.

Included Features:

  • Distributions
    • Uniform
    • Normal
    • Feel free to contribute!
  • Generators
  • Probabilities

Usage:

/// Uniform
let randomZeroToOne: Double = random()
let randomOverRange: Double = random(-16...32)

/// Probability
let coinFlip: Bool = probability(0.5)

/// Normal
let normalValue: Double = normal()

/// Generator
let uniformDistribution = UniformDistribution(range: -1...1)
let uniformGenerator = RandomGenerator(distribution: uniformDistribution)

Latest podspec

{
    "name": "RandKit",
    "version": "0.0.1",
    "summary": "Swift framework for random numbers & distributions.",
    "homepage": "https://github.com/aidangomez/RandKit",
    "license": "MIT",
    "authors": {
        "Aidan Gomez": "[email protected]"
    },
    "platforms": {
        "ios": "8.4",
        "osx": "10.11"
    },
    "source": {
        "git": "https://github.com/aidangomez/RandKit.git",
        "tag": "0.0.1",
        "submodules": false
    },
    "source_files": [
        "Source",
        "Source/Distributions",
        "Source/Utilities"
    ]
}

Pin It on Pinterest

Share This