seed();\ \隨機種子
for(temp = rand();溫度%7!= 0;temp = rand());
for(temp 1 = rand();temp1%7!= 0;temp 1 = rand());
sum = temp+temp 1;
if(sum = = 7 | | sum = = 11)goto Victory;
else if(sum = = 2 | | sum = = 3 | | sum = = 12)goto失敗;
其他
{
重復:
for(temp = rand();溫度%7!= 0;temp = rand());
for(temp 1 = rand();temp1%7!= 0;temp 1 = rand());
if(sum = = temp+temp 1)goto Victory;
else if(temp+temp 1 = = 7)goto失敗;
否則轉到重復:
}