Extensions on
String
Properties
Methods
random(length:)
public static func random(length: Int) -> String
Returns a random string.
Parameters
| Name | Type | Description |
|---|---|---|
| length | Int |
The length of the string. |
Returns
A random string of length length. It consists of alphabets and numbers.