Releases: nvzqz/RandomKit
Releases · nvzqz/RandomKit
v2.1.0
v2.0.0
v1.6.0
New Features
randomGenerator()andrandomSequence()forRandomTypethat return an infinite number of random values- New
ShuffleTypeprotocol for types that can return its values shuffled- Array and Dictionary can be shuffled
- New
RandomIntervalTypeprotocol that allows for getting a random value within a closed interval- Random generators and sequences can be made within a closed interval
- Getting random slices of an Array
Phi Mage #10
Changes
- Deleted
String.RandomLengthandNSURL.RandomValues
v1.5.0
New Features
- tvOS support 📺
- Added random generators to types in the CoreGraphics module as well as
NSNumber - Removed the Foundation import for extensions of Swift types (only 'stdlib.h' is needed for arc4random)
Changes
- Relevant Objective-C types now conform to
RandomType
v1.4.0
New Features
- Random phone number generator
- Random gender generator
- Random English honorific generator according to type and gender
- Another
CGFloatrandom generator with interval parameter
Changes
- Faster
Double,Float, andCGFloatgeneration CGFloatvalue generation is now dependent on itsNativeType
v1.3.0
v1.2.0
v1.1.0
New Features
RandomTypeprotocol for types that can generate a random value ofSelf.- Added a
randomproperty toCollectionTypethat returns a random element ofself, ornilifselfis empty String.RandomLengthfor setting the default length used byString.random()