MultiAgentDecisionProcess  Release 0.2.1
AgentRandom.cpp
Go to the documentation of this file.
1 
28 #include "AgentRandom.h"
29 #include <float.h>
31 
32 using namespace std;
33 
34 #define DEBUG_AgentRandom 0
35 
38 {
39 }
40 
43 {
44 }
45 
46 //Destructor
48 {
49 }
50 
52 {
53  vector<size_t> nrAis=GetPU()->GetNrActions();
54  Index aI=static_cast<Index>(nrAis[GetIndex()]*
55  (rand() / (RAND_MAX + 1.0)));
56  return(aI);
57 }
58 
60 {
61 }