float randNumber;
int l1, l2, l3;
// void setup() {
// Serial.begin(9600);
// // if analog input pin 0 is unconnected, random analog
// // noise will cause the call to randomSeed() to generate
// // different seed numbers each time the sketch runs.
// // randomSeed() will then shuffle the random function.
// randomSeed(analogRead(0));
// }
void setup() {
Serial.begin(9600);
// if analog input pin 0 is unconnected, random analog
// noise will cause the call to randomSeed() to generate
// different seed numbers each time the sketch runs.
// randomSeed() will then shuffle the random function.
randomSeed(analogRead(0));
l3=1;
delay(3000);
l2=1;
l1=1:
if (l3 == 1){
l3=1;
l2=0;
l1=0;
randNumber = random(5, 10);// print a random number from 10 to 19
}
if (l2==1){
randNumber = random(5.2, 7.3);// print a random number from 10 to 19
}
if (l1==1){
randNumber = random(2, 5);// print a random number from 10 to 19
}
}
void loop(){
}
// void loop() {
// l3=1;
// delay(3000);
// l2=1;
// l1=1:
// if (l3 == 1){
// l3=1;
// l2=0;
// l1=0;
// randNumber = random(5, 10);// print a random number from 10 to 19
// }
// if (l2==1){
// randNumber = random(5.2, 7.3);// print a random number from 10 to 19
// }
// if (l1==1){
// randNumber = random(2, 5);// print a random number from 10 to 19
// }
Serial.println (randNumber);
delay(1000);
}