MartonioJunior / swift-chance

A small package with tools for controlled randomness.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chance

A library with utilities for randomness

Table of Contents

Features

  • New Dice alias for simulating dices and dice rolls
  • GeneratorDecoder for generating values for any decodable type
  • Seed-based RNG through Seed and SeedRandomNumberGenerator
  • New Randomizable protocol for configuring objects based on received input
  • Extensions for Array, Collection, RandomNumberGenerator and swift-gen Gen type

Installation

Carthage

If you use Carthage, you can add the following dependency to your Cartfile:

github "MartonioJunior/swift-chance" ~> 1.0

SwiftPM

If you want to use Overture in a project that uses SwiftPM, it's as simple as adding a dependencies clause to your Package.swift:

dependencies: [
  .package(url: "https://github.com/MartonioJunior/swift-chance.git", from: "1.0.0")
]

License

This package is released under the MIT license. See LICENSE for details.

Dependencies

The package depends on the following resources:

About

A small package with tools for controlled randomness.

License:MIT License


Languages

Language:Swift 100.0%