1 /* Copyright (c) 2007-2014. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
15 typedef enum { NONE, DRAND48, RAND, RNGSTREAM } e_random_generator_t;
17 typedef struct random_data_desc {
20 double mean, std; /* note: mean and standard deviation are normalized */
21 e_random_generator_t generator;
22 } s_random_data_t, *random_data_t;
24 XBT_PUBLIC_DATA(xbt_dict_t) random_data_list;
26 XBT_PUBLIC(double) random_generate(random_data_t random);
27 XBT_PUBLIC(random_data_t) random_new(e_random_generator_t generator,
29 double min, double max, double mean,
33 #endif /* _SURF_RMGR_H */