Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ansi C declaration of the variables (at the beginning of the blocks)
[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 typedef enum {NONE, DRAND48, RAND} Generator;
11
12 typedef struct random_data_desc {
13   int max, min, mean, stdDeviation;
14   Generator generator;
15 } s_random_data_t, *random_data_t;
16
17 XBT_PUBLIC_DATA(xbt_dict_t) random_data_list;
18
19 XBT_PUBLIC(float) random_generate(random_data_t random);
20 XBT_PUBLIC(random_data_t) random_new(int generator, int min, int max, int mean, int stdDeviation);
21
22 #endif                          /* _SURF_RMGR_H */