String
extension String: Mockup
-
Declaration
Swift
public static func random() -> String
-
Generates random string of required length from supplied characters.
Declaration
Swift
public static func random( length: Int, characters: [Character] ) -> String
Parameters
length
Length of the generated string in characters.
characters
Array of characters used to generate the random string.