This is not a way of doing this certain task. you have to make one array with most of word instad of punting single string with all alphabet character And create random sentence. This is logical and programmatic task xcode
not generate random word it self. you have to do some logical stuff your self.
Here i found one github example code please check Bellow you got idea how does you can achieve this task. Hope you getting some idea with this example.