             }
         }
         else {
-            for _ in 0..count {
+            for _ in 0..<count {
                 randomElements.append(self[Int.random(selfRange)])
             }
         }

    
    static func random(range: Range<Int>, count: Int) -> Int[] {
        var numbers = Int[]()
        for _ in 0..count {
            numbers.append(Int.random(range))
        }
        return numbers

    
    static func random(max: Int, count: Int) -> Int[] {
        var numbers = Int[]()
        for _ in 0..<count {
            numbers.append(Int.random(0...max))
        }
        return numbers
