ControlledChaos
is a simple Swift package for working with probability-based randomization.
Bool
to provide random values with a specific probability of receiving true
Double
to produce random values with a Gaussian distributionProbabilityGroup
struct to get random items with specific probabilitiesRandomItemBag
class to randomly select finite items from a collectionSeededRandomNumberGenerator
struct to produce random values with repeatable sequences using the SplitMix64 algorithmControlledChaos
was written by B.T. Franklin (@btfranklin) from 2018 onward and is licensed under the MIT license. See LICENSE.md.
link |
Stars: 7 |
Last commit: 1 year ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics