changed this
int x;
int y;
String wordMy="";
int i=0;
void setup() {
size(500, 500);
}
void draw() {
if ( (i<wordMy.length())) {
//!!!!
x=int(random(25, 450));
y=int(random(25, 450));
textSize(25);
fill(0);
if (wordMy.length() > 0) { //!!!
text(wordMy.charAt(i),
x, y);
}
i++;
}
}
void keyPressed() {
wordMy+=key;
}