 */
 
 public func randWeibull(scale: Double, _ shape: Double) -> Double {
-    return 1/scale * pow(-log(randContUniform(0, 1)), 1/shape)
+    return 1 / scale * pow(-log(randContUniform(0, 1)), 1 / shape)
 }
 
 /**


public func randBeta(shape1: Double, _ shape2: Double) -> Double {
    
    let maxValue = pow((shape1 - 1)/(shape1 + shape2 - 2), shape1 - 1) * pow((shape2 - 1)/(shape1 + shape2 - 2), shape2 - 1)
    var u1, u2: Double
    
    repeat {
        u1 = randContUniform(0.0, 1.0)
        u2 = randContUniform(0.0, maxValue)
    } while u2 > pow(u1, shape1 - 1)*pow(u1, shape2 - 1)
    
    return u1
}

*/

public func randGeom(probabilityOfSuccess: Double) -> Int {
    return Int(ceil(log(randContUniform(0, 1)) / log(1 - probabilityOfSuccess)))
}

/**
