         return results
     }
     
-    func loopIndex(before i: Int) -> Int {
+    func loopedIndex(before i: Int) -> Int {
         let prevIndex = index(before: i)
         return prevIndex < startIndex ? endIndex - 1 : prevIndex
     }
     
-    func loopIndex(after i: Int) -> Int {
+    func loopedIndex(after i: Int) -> Int {
         let nextIndex = index(after: i)
         return nextIndex >= endIndex ? startIndex : nextIndex
     }

    }
}

extension Sequence {
    /// Returns an array with the contents of this sequence, shuffled.
    func shuffled() -> [Iterator.Element] {
        var result = Array(self)

    }
}

public extension Array {
    var randomIndex: Int {
        return Int(arc4random_uniform(UInt32(count)))
    }
