int ran;
void setup() {
Serial.begin(9600);
randomSeed(analogRead(A0));
ran = random(123, 987);
int d1 = ran / 100;
int d2 = (ran / 10) % 10;
int d3 = ran % 10;
Serial.println(ran);
Serial.print(char(d1+97));
Serial.print(char(d2+97));
Serial.println(char(d3+97));
}
int num1,num2,num3;
void loop(){
if(Serial.available()){
String a = Serial.readString();
num1=(int)a[0] - 97;
num2=(int)a[1] - 97;
num3=(int)a[2] - 97;
Serial.print(num1);
Serial.print(num2);
Serial.println(num3);
}
}