// 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() {
}
Thursday, March 11, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment