Home

Awesome

RandomKitBigInt

<p align="center"> <img src="https://img.shields.io/badge/platform-ios%20%7C%20macos%20%7C%20watchos%20%7C%20tvos%20%7C%20linux-lightgrey.svg" alt="Platform"> <img src="https://img.shields.io/badge/language-swift-orange.svg" alt="Language: Swift"> <a href="https://cocoapods.org/pods/RandomKitBigInt"><img src="https://img.shields.io/cocoapods/v/RandomKitBigInt.svg" alt="CocoaPods - RandomKit"></a> <a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage"></a> <img src="https://img.shields.io/badge/license-MIT-000000.svg" alt="License"> </p>

RandomKitBigInt allows for random generation of arbitrary-precision integers in Swift. This is a set of extensions to BigInt that provide functionality of RandomKit.

Installation

Compatibility

Install Using Swift Package Manager

The Swift Package Manager is a decentralized dependency manager for Swift.

  1. Add the project to your Package.swift.

    import PackageDescription
    
    let package = Package(
        name: "MyAwesomeProject",
        dependencies: [
            .Package(url: "https://github.com/nvzqz/RandomKitBigInt.git",
                     majorVersion: 1)
        ]
    )
    
  2. Import the RandomKitBigInt module.

    import RandomKitBigInt
    

Install Using CocoaPods

CocoaPods is a centralized dependency manager for Objective-C and Swift. Go here to learn more.

  1. Add the project to your Podfile.

    use_frameworks!
    
    pod 'RandomKitBigInt', '~> 1.1.0'
    

    If you want to be on the bleeding edge, replace the last line with:

    pod 'RandomKitBigInt', :git => 'https://github.com/nvzqz/RandomKitBigInt.git'
    
  2. Run pod install and open the .xcworkspace file to launch Xcode.

  3. Import the RandomKitBigInt framework.

    import RandomKitBigInt
    

Install Using Carthage

Carthage is a decentralized dependency manager for Objective-C and Swift.

  1. Add the project to your Cartfile.

    github "nvzqz/RandomKitBigInt"
    
  2. Run carthage update and follow the additional steps in order to add RandomKitBigInt to your project.

  3. Import the RandomKitBigInt framework.

    import RandomKitBigInt
    

License

RandomKit is released under the MIT License.