[code]func generateRandomCharacter() -> Character {
// create a random index into the characters array
let index = Int(arc4random_uniform(UInt32(characters.characters.count)))
// Get and return a random character
let character = characters[index]
return character
}[/code]
The “let character = characters[index]” line gives an error saying “subscript is unavailable: cannot subscript string with an Int…” but I can’t seem to figure out what to replace “index” with…