Mac にこの dieRole 関数がありますが、Visual C++ 2012 に移動すると、結果は毎回 6 になります。
int dieRoll() // return a number between 1 and 6
{
static int maxRange = RAND_MAX / 6 * 6;
int result;
do
{
result = rand();
}
while(result > maxRange);
return result % 6 + 1;
}