void setup() {
Serial.begin(9600);
Serial.println("echo");
}
void loop() {
if(Serial.available()) {
Serial.println("Random numbers");
for(int i = Serial.parseInt(); i>0; i--){
Serial.println(random(10));
}
}
}
// byte b = 255 + 1;
// Serial.print("byte b = 255 + 1 = ");
// Serial.println(b); // 0
// //int = range of -32,768 to 32,767
// int i = -32768 - 1;
// Serial.print("int i = -32768 - 1 = ");
// Serial.println(i); // 32767