Adds various random string constructions.

  • Random character string (letters and numbers)
  • Random human names
  • Random names


String.random(.upper, ofSize: 8)              // ZOGPHLXZ
String.random([.lower, .numbers], ofSize: 12) // 3ngf6sd043sd

String.random(.default)                       // Infallible Party
String.random(.womanName)                     // Rose Young
String.random(.distinguished, delimiter: "_") // Vigilant_Galileo



If you are attempting to use the WickedRandom Swift Package in your XC Unit tests, you might see this error:

Undefined symbols for architecture arm64:
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It is quite misleading, and can be solved by adding WickedRandom to Link Binary With Libraries in your Tests target. Screenshot 2022-03-24 at 5 27 42 PM


View Github