Thursday, March 11, 2010

Task 34 - Random Numbers

// Adam Randall - Random Numbers Program, generates 100 random numbers between 1 and 10

long randNumber;

void setup(){
Serial.begin(9600);
randomSeed(analogRead(0));
for (int i=0; i<100; i++){
randNumber = random(0, 10);
Serial.println(randNumber);
delay(500);
}
}

void loop() {
}

No comments:

Post a Comment