Latest 1.1.2
License MIT
Platforms ios 9.0


Build Status

An easy to use Swift framework generating random values for testing and development.

Main Features
✌️ Say goodbye to hard coding random values during testing
Unit tested
😀 Support for 16+ types of form text
❤️ Simple syntax for ease of use
🐤 Written in pure Swift


As of now, there’s a default random generator. All you have to do is import Randy on the file you need to use it in and then call the getDefaultRandom function with the type of random text you want as the argument. All the types of random text can be found below. Here are all the calls and sample outputs:


print("Username: " + getDefaultRandom(type: .username))
print("Password: " + getDefaultRandom(type: .password))
print("Email: " + getDefaultRandom(type: .email))
print("Phone Number: " + getDefaultRandom(type: .phoneNumber))
print("Day: " + getDefaultRandom(type: .day))
print("Year: " + getDefaultRandom(type: .year))
print("Address: " + getDefaultRandom(type: .address))
print("ZIP: " + getDefaultRandom(type: .zip))
print("Credit Card Number: " + getDefaultRandom(type: .creditCardNumber))
print("Credit Card Security Code: " + getDefaultRandom(type: .creditCardSecurityCode))
print("Social Security Number: " + getDefaultRandom(type: .socialSecurityNumber))
print("Drivers License: " + getDefaultRandom(type: .driversLicense))
print("Car License Plate Number: " + getDefaultRandom(type: .carLicensePlateNumber))
print("Car VIN Pre-1981: " + getDefaultRandom(type: .carVinNumberPre1981))
print("Car VIN Post-1981: " + getDefaultRandom(type: .carVinNumberPost1981))
print("Bad ISBN13: " + getDefaultRandom(type: .badIsbn13))


Username: wLSpg4ZU
Password: ujbtrsSyv$
Email: [email protected]
Phone Number: 5264209312
Day: Monday
Year: 7310
Address: 2025 leeejy Drive
ZIP: 64876
Credit Card Number: 4851707637446305
Credit Card Security Code: 413
Social Security Number: 418852351
Drivers License: 98396247
Car License Plate Number: 3ULWGGF
Car VIN Pre-1981: 00081029277
Car VIN Post-1981: 58672800222630652
Bad ISBN13: 9786711130335


To run the example project, clone the repo, and run pod install from the Example directory first.

To Do / To Build On:

  • Unit tests for each type (Up to date as of 4/29/2019)
  • Additional types such as month, valid ISBN, credit card expiration date.
  • Solve issues.
  • Add Jazzy docs.


Randy is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'Randy'


[email protected]


Randy is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "Randy",
    "version": "1.1.2",
    "summary": "Random value generation made easy.",
    "license": {
        "type": "MIT"
    "description": "This library provides easy to use functions that generate random values that you can use to test your app or speed up the development process.",
    "homepage": "",
    "authors": {
        "Akash Kundu": "[email protected]"
    "platforms": {
        "ios": "9.0"
    "swift_version": "5.0",
    "source": {
        "git": "",
        "tag": "1.1.2"
    "source_files": "Randy/Classes/**/*",
    "exclude_files": "Classes/Exclude"

Pin It on Pinterest

Share This