Hello,
when I use the following lines in the setup, I get the same numbers everytime on programstart.
But I want random-numbers. ;-)
any tips?
best regards and thank you in advance!

tested in SR0 (and some other releases) on linux64
when I use the following lines in the setup, I get the same numbers everytime on programstart.
But I want random-numbers. ;-)
any tips?
best regards and thank you in advance!
- Code:
randomSeed(analogRead(0));
Serial.println("random(1000)...");
uint8_t i, j;
for (i=0; i<10; i++) {
j=random(1000);
Serial.print(j); Serial.print(" ");
}

tested in SR0 (and some other releases) on linux64
- Attachments
random_01.zip
- You don't have permission to download attachments.
- (4 Kb) Downloaded 1 times