 */
 
 public func randExps(rate: Double, sampleLength: Int) -> [Double] {
-    return (0..<sampleLength).map { _ in randExp(rate) }
+    return randContUniforms(0, 1, sampleLength).map { -1.0/rate * log($0) }
 }
 
 // MARK: - Gamma distribution

*/

public func randGeoms(probabilityOfSuccess: Double, sampleLength: Int) -> [Int] {
    return (0..<sampleLength).map { _ in randGeom(probabilityOfSuccess) }
}

// MARK: - Poisson distribution

*/

public func randBinomials(probabilityOfSuccess: Double, sampleLength: Int) -> [Int] {
    return randContUniforms(0, 1, sampleLength).map { Int($0 < probabilityOfSuccess) }
}

/**
