X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e0db756d6838ce418258f8e8f44cc37ce44123e5..4b2b01eff3a1b860aed60642848a6e1000011c22:/src/include/surf/random_mgr.h diff --git a/src/include/surf/random_mgr.h b/src/include/surf/random_mgr.h index 55ff757741..19b4a15a58 100644 --- a/src/include/surf/random_mgr.h +++ b/src/include/surf/random_mgr.h @@ -1,32 +1,31 @@ -/* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team. +/* Copyright (c) 2007-2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it - * under the terms of the license (GNU LGPL) which comes with this package. */ + * under the terms of the license (GNU LGPL) which comes with this package. */ #ifndef _SURF_RMGR_H #define _SURF_RMGR_H #include "xbt/heap.h" #include "xbt/dict.h" -#include -#include SG_BEGIN_DECL() -typedef enum { NONE, DRAND48, RAND, RNGSTREAM } Generator; +typedef enum { NONE, DRAND48, RAND, RNGSTREAM } e_random_generator_t; typedef struct random_data_desc { long int seed; double max, min; double mean, std; /* note: mean and standard deviation are normalized */ - Generator generator; + e_random_generator_t generator; } s_random_data_t, *random_data_t; XBT_PUBLIC_DATA(xbt_dict_t) random_data_list; XBT_PUBLIC(double) random_generate(random_data_t random); -XBT_PUBLIC(random_data_t) random_new(Generator generator, long int seed, +XBT_PUBLIC(random_data_t) random_new(e_random_generator_t generator, + long int seed, double min, double max, double mean, double stdDeviation);