void setup()
{
Serial.begin(9600);
}
long randNum;
int count = 1;
int sixCount = 0;
void loop()
{
while (sixCount < 25)
{
randNum = random(1, 7);
delay(200);
Serial.print("Roll number ");
Serial.print(count);
Serial.print(": ");
if (randNum == 6)
{
sixCount ++;
}
Serial.println(randNum);
count ++;
}
}
No comments:
Post a Comment