As title says (not sure about my english). I am new to swift language.

I am currently working in a swift app where a a user pick the correct answer in a randomize questions.

I am using gameplaykit for randomizing

```
var questions = ["question1", "question2", "question3", "question4", "question5"]// my question array

func askQuestion(){
        countries = GKRandomSource.sharedRandom().arrayByShufflingObjects(in: countries) as! [String]//to randomize
...
}

```

So my app are working fine in randomizing all the question1...questionN repeateadly but what i want is to have a limit i.e. only 5 questions will be given.

I searched but found "getting the specific index of an array", not what i'm looking for.
Could you help me how to achieve this? or Is my approach right?
Thanks