void setup()
{
Serial.begin(115200);
}
void loop()
{
byte number = random(256); //a byte variable local to loop()
showNumber(number); //pass the value to a function
delay(1000);
}
void showNumber(byte theByte) //value passed is named theByte in the function
{
Serial.print("value in the function : ");
Serial.println(theByte);
}