RandomKit is a Swift framework that makes random data generation simple and easy. RandomKit is possibly also compatible with FreeBSD, Android, and Windows (under Cygwin) but has not been tested for those platforms. The RandomGenerator protocol defines basic methods for generating primitive values and randomizing a buffer. All provided types that conform to RandomGenerator have a static default value that can be passed as an inout argument to generation functions. The RandomBytesGenerator protocol is for types that specialize in generating a specific type that fills up a number of bytes. For example, MersenneTwister specializes in generating UInt64 while Xorshift generates UInt32 values.

Features

  • Install Using Swift Package Manager
  • Install Using CocoaPods
  • Install Using Carthage
  • RandomGenerator
  • Thread Safety
  • Thread-local generators are deallocated upon thread exit
  • Swift Types

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow RandomKit

RandomKit Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of RandomKit!

Additional Project Details

Programming Language

Swift

Related Categories

Swift Frameworks

Registered

2023-06-22