const int getrandom (const int x);
const int roll (const int howmany, const int die);
const bool percent (const int prob);
void gamelog (const string & what, const Character * player = NULL);
void failedlog (const string & what, const Character * player);
void webserverlog (const string & what, const Character * player = NULL);
const string convertErrorCode (const string & code, const string & prefix = "");
const string convertMessageCode (const string & code, const string & prefix = "");
