int buzz = 3;
int pot = A0;
int randomFreq = 0;
int potValue = 0;
void setup() {
// put your setup code here, to run once:
pinMode(buzz, OUTPUT);
pinMode(pot, INPUT);
Serial.begin(9600);
randomSeed(analogRead(A1));
randomFreq = random(0, 1023);
tone(buzz, randomFreq, 1000);
delay(2000);
}
void loop() {
// put your main code here, to run repeatedly:
}