summaryrefslogtreecommitdiffstats
path: root/contrib/python/pythran/pythran/pythonic/random/expovariate.hpp
blob: 22f763aa3c76c0ed72b0352b8d8a2297204b0b57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef PYTHONIC_RANDOM_EXPOVARIATE_HPP
#define PYTHONIC_RANDOM_EXPOVARIATE_HPP

#include "pythonic/include/random/expovariate.hpp"

#include "pythonic/random/random.hpp"
#include "pythonic/utils/functor.hpp"

PYTHONIC_NS_BEGIN

namespace random
{
  inline double expovariate(double l)
  {
    return std::exponential_distribution<>(l)(__random_generator);
  }
} // namespace random
PYTHONIC_NS_END

#endif