Releases: nvzqz/RandomKit
Releases · nvzqz/RandomKit
v2.1.0
v2.0.0
v1.6.0
New Features
randomGenerator()
andrandomSequence()
forRandomType
that return an infinite number of random values- New
ShuffleType
protocol for types that can return its values shuffled- Array and Dictionary can be shuffled
- New
RandomIntervalType
protocol 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.RandomLength
andNSURL.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
CGFloat
random generator with interval parameter
Changes
- Faster
Double
,Float
, andCGFloat
generation CGFloat
value generation is now dependent on itsNativeType
v1.3.0
v1.2.0
v1.1.0
New Features
RandomType
protocol for types that can generate a random value ofSelf
.- Added a
random
property toCollectionType
that returns a random element ofself
, ornil
ifself
is empty String.RandomLength
for setting the default length used byString.random()