Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'xbt_random' into 'master'
[simgrid.git] / include / xbt / random.hpp
1 /* Copyright (c) 2019. The SimGrid Team. All rights reserved.               */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef SIMGRID_XBT_RANDOM_HPP
7 #define SIMGRID_XBT_RANDOM_HPP
8
9 #include <random>
10
11 namespace simgrid {
12 namespace xbt {
13 namespace random {
14 enum xbt_random_method { XBT_RNG_xbt, XBT_RNG_std };
15
16 void use_xbt();
17 void use_std();
18 int uniform_int(int, int);
19 int xbt_uniform_int(int, int);
20 double uniform_real(double, double);
21 double xbt_uniform_real(double, double);
22 double exponential(double);
23 double xbt_exponential(double);
24 double normal(double, double);
25 double xbt_normal(double, double);
26 void set_mersenne_seed(int);
27 } // namespace random
28 } // namespace xbt
29 } // namespace simgrid
30
31 #endif