You don’t need to wait or something as the method shuffle
is synchronous , which means next line will run after it finishes shuffling
var arr = ["1","2","3"]
arr.shuffle()
print(arr) // ["2", "1", "3"]
solved check when the array has finished shuffling to do some operation