We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ca2226 commit f8498acCopy full SHA for f8498ac
1 file changed
examples/FORCE_RandomOut/FORCE_RandomOut.ino
@@ -34,10 +34,10 @@ void loop() {
34
//Choose a random number
35
randomSeed(millis()); //get a new randomSeed here so the sequence isn't the same every time
36
int randnum = random(1, 4); //Pick a random number between 1 and 3
37
- Serial.print("Random Num: "); //Print the random number
+ Serial.print("Random Num: "); //Print the random number to the Serial Monitor
38
Serial.println(randnum);
39
40
- force.presses++; //keep count of successful presses
+ force.presses++; //add 1 to force.presses
41
force.Dispense(); //dispense reward
42
43
if (randnum == 3) { //if random number is 3...
0 commit comments