btfranklin/ControlledChaos
A Swift package for working with probability-driven randomness
Features
- Function on
Boolto provide random values with a specific probability of receivingtrue - Function on
Doubleto produce random values with a Gaussian distribution ProbabilityGroupstruct to get random items with specific probabilitiesRandomItemBagclass to randomly select finite items from a collectionSeededRandomNumberGeneratorstruct to produce random values with repeatable sequences using the SplitMix64 algorithm
License
ControlledChaos was written by B.T. Franklin (@btfranklin) from 2018 onward and is licensed under the MIT license. See LICENSE.md.
Package Metadata
Repository: btfranklin/ControlledChaos
Stars: 7
Forks: 0
Open issues: 0
Default branch: main
Primary language: swift
License: MIT
Topics: gaussian, item-bag, probability, randomness, splitmix64, swift
README: README.md
Archived: yes