     }
 }
 
-public extension URL {
-    /// SwiftRandom extension
-    public static func random() -> URL {
+public extension NSURL {
+    /// SwiftRandom extension
+    public static func random() -> NSURL {
         let urlList = ["http://www.google.com", "http://leagueoflegends.com/", "https://github.com/", "http://stackoverflow.com/", "https://medium.com/", "http://9gag.com/gag/6715049", "http://imgur.com/gallery/s9zoqs9", "https://www.youtube.com/watch?v=uelHwf8o7_U"]
-        return URL(string: urlList.randomItem()!)!
+        return NSURL(string: urlList.randomItem())!
     }
 }
 


public extension Int {
    /// SwiftRandom extension
        return random(range.upperBound, lower: range.lowerBound)
    public static func random(_ range: Range<Int>) -> Int {
    }

    /// SwiftRandom extension
    public static func random(_ lower: Int = 0, _ upper: Int = 100) -> Int {
        return lower + Int(arc4random_uniform(UInt32(upper - lower + 1)))
    }
}

public extension Int32 {
    /// SwiftRandom extension
        return random(range.upperBound, lower: range.lowerBound)
    public static func random(_ range: Range<Int>) -> Int32 {
    }

    /// SwiftRandom extension
    ///
    /// - note: Using `Int` as parameter type as we usually just want to write `Int32.random(13, 37)` and not `Int32.random(Int32(13), Int32(37))`
    public static func random(_ lower: Int = 0, _ upper: Int = 100) -> Int32 {
        let r = arc4random_uniform(UInt32(Int64(upper) - Int64(lower)))
        return Int32(Int64(r) + Int64(lower))
    }

        return Bool.random()
    }

    public static func randomInt(range: Range<Int>) -> Int {
        return Int.random(range: range)
    }

    public static func randomInt(lower: Int = 0, _ upper: Int = 100) -> Int {
        return Int.random(lower: lower, upper)
    }

    public static func randomInt32(range: Range<Int>) -> Int32 {
				return Int32.random(range: range)
    }

    public static func randomInt32(lower: Int = 0, _ upper: Int = 100) -> Int32{
        return Int32.random(lower, lower: upper)
    }

    public static func randomPercentageisOver(percentage: Int) -> Bool {
        return Int.random() > percentage
    }

    public static func randomDouble(lower: Double = 0, _ upper: Double = 100) -> Double {
        return Double.random(lower, lower: upper)
    }

    public static func randomFloat(lower: Float = 0, _ upper: Float = 100) -> Float {
        return Float.random(lower, lower: upper)
    }

    public static func randomCGFloat(lower: CGFloat = 0, _ upper: CGFloat = 1) -> CGFloat {
        return CGFloat.random(lower, lower: upper)
    }

    public static func randomDateWithinDaysBeforeToday(days: Int) -> NSDate {
        return NSDate.randomWithinDaysBeforeToday(days: days)
    }

    public static func randomDate() -> NSDate {
        return NSDate.random()
    }

    public static func randomColor(randomAlpha: Bool = false) -> UIColor {
        return UIColor.random(randomAlpha: randomAlpha)
    }

    public static func randomNSURL() -> NSURL {
        return NSURL.random()
    }

    //==========================================================================================================
