#include #include "RandPlayerT.h" #include #include using namespace std; int RandPlayerT::Toss(void) { vector::iterator pos; int newPos, me; // who am i? me = GetMyPosition(); do { newPos = rand() % static_cast (team.size()); } while( newPos == me); return newPos; } string RandPlayerT::TossType(void ) const { return "randomly"; }