Hello,
Please format your code:
Preguntas Frecuentes (FAQ/Guidelines)
Create an array:
int [] array = {1, 3, 10, 17, 21};
Select a random element from the array:
int index = int(random(5));
Use println()
to print to console.
See the Keyboard section in references for other options:
References:
:)