A library with utilities for randomness
- New
Dice
alias for simulating dices and dice rolls GeneratorDecoder
for generating values for any decodable type- Seed-based RNG through
Seed
andSeedRandomNumberGenerator
- New
Randomizable
protocol for configuring objects based on received input - Extensions for
Array
,Collection
,RandomNumberGenerator
and swift-genGen
type
If you use Carthage, you can add the following dependency to your Cartfile
:
github "MartonioJunior/swift-chance" ~> 1.0
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")
]
This package is released under the MIT license. See LICENSE for details.
The package depends on the following resources:
- swift-gen by PointFree