PcgRandom

main

PCG Random for Swift language
paiv/swift-pcg-random

PCG Pseudorandom Number Generator

standwithukraine cocoapods

PCG random generator for Swift language.

Installation

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/paiv/swift-pcg-random.git", .upToNextMajor(from: "1.0.0"))
]

CocoaPods

pod 'PcgRandom', '~> 1.0'

Usage

import PcgRandom
var pcg = Pcg64Random(seed: 42)
let dice = Int.random(in: 1...20, using: &pcg)
print(dice)

Description

  • Swift Tools 5.1.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sat Oct 26 2024 09:43:41 GMT-0900 (Hawaii-Aleutian Daylight Time)