Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
6ef40d9c24ec7a144cbd6a86622b0c97e815033b
[simgrid.git] / src / include / surf / random_mgr.h
1 #ifndef _SURF_RMGR_H
2 #define _SURF_RMGR_H
3
4 #include "xbt/heap.h"
5 #include "xbt/dict.h"
6 #include <stdlib.h>
7 #include <math.h>
8 #include <stdio.h>
9
10 SG_BEGIN_DECL()
11
12 typedef enum {NONE, DRAND48, RAND} Generator;
13
14 typedef struct random_data_desc {
15   int max, min, mean, stdDeviation;
16   Generator generator;
17 } s_random_data_t, *random_data_t;
18
19 XBT_PUBLIC_DATA(xbt_dict_t) random_data_list;
20
21 XBT_PUBLIC(float) random_generate(random_data_t random);
22 XBT_PUBLIC(random_data_t) random_new(int generator, int min, int max, int mean, int stdDeviation);
23
24 SG_END_DECL()
25
26 #endif                          /* _SURF_RMGR_H */