for getting a random sentence every time try this
PrintWriter output;
String s = "Wie froh bin ich, daß ich weg bin! Bester Freund, was ist das Herz des Menschen! Dich zu verlassen, den ich so liebe, von dem ich unzertrennlich war, und froh zu sein!";
void setup() {
size(600,360);
background(255);
}
void draw() {
if(random(100)<20)
s = s.replaceAll("Wie", "Und");
if(random(100)<20)
s = s.replaceAll("froh", "ausgelassen");
if(random(100)<20)
s = s.replaceAll("bin", "bin");
if(random(100)<20)
s = s.replaceAll("ich", "ich");
if(random(100)<20)
s = s.replaceAll("daß", "daß");
if(random(100)<20)
s = s.replaceAll("weg", "fort");
if(random(100)<20)
s = s.replaceAll("Bester", "Erster");
if(random(100)<20)
s = s.replaceAll("Freund", "Vertrauter");
if(random(100)<20)
s = s.replaceAll("was", "was");
if(random(100)<20)
s = s.replaceAll("ist", "befindet");
if(random(100)<20)
s = s.replaceAll("das", "das");
if(random(100)<20)
s = s.replaceAll("Herz", "Zentrum");
if(random(100)<20)
s = s.replaceAll("des", "des");
if(random(100)<20)
s = s.replaceAll("Menschen", "Sterblichen");
if(random(100)<20)
s = s.replaceAll("verlassen", "entfernen");
if(random(100)<20)
s = s.replaceAll("liebe", "anbete");
if(random(100)<20)
s = s.replaceAll("unzertrennlich", "vertraut");
if(random(100)<20)
s = s.replaceAll("sein", "entstammen");
output = createWriter("positions.text");
output.print(s);
output.flush();
output.close();
stop();
}
Since u are new to processing I tried to write a simple solution in which each word now has a 20% chance of being replaced and for random text size use this reference
textSize() add textSize(random(50)); this might just do the trick let me know if it works or not