I have a look at the answers in regard to Swift2.0.1 in the website of stackoverflow. In spite of the usage of arc4random_uniform() , but it still could not be solved. Please help look at the lines of code as follows.
extension Array {
mutating func shuffle() {
for first in stride(from: self.count - 1, through: 1, by: -1) {
let second = Int(arc4random_uniform(UInt32(first + 1)))
swap(&self[first], &self[second])
}
}
Thanks in advance