//
// Array-Catagory.swift
// zjfae
//
// Created by CJW on 17/5/12.
// Copyright © 2017年 onight. All rights reserved.
//
import Foundation
import UIKit
extension Array{
mutating func randamArray() -> Array {
var list = self
for index in 0..<list.count {
let newIndex = Int(arc4random_uniform(UInt32(list.count-index))) + index
if index != newIndex {
swap(&list[index], &list[newIndex])
}
}
self = list
return list
}
}