I want to get some random text generated.
I tried writing a basic Java programme,
int nowords = r.nextInt(2000);
int i, j;
for (i = 0; i < nowords; i++) {
int lengthofword = r.nextInt(10) + 2;
for (j = 0; j < lengthofword; j++) {
int ch = r.nextInt(26);
System.out.print(alphabet[ch]);
}
System.out.print(" ");
}
and the result is something like:
tafawc flnqhabhv mqceuoqy rttzckzqa bdyxzod zbxweclvia wegmxvuoqez ijwauhmzw joxm zvphbs ogpjyip qxoymxkxv yrfoifig fbhecph izxcyfma xarzse srwic jgi fkbcdcydpz qpdvsz rqhjieqno fmelfmtgqe qozenjlxtg vfxd lkmkrksgw ytuaduknsl let ao bm lsfjednsa qouinii yrwzerdck yb kszttly zmwflwevyix kdg qpnkzuijva ssau yc wxews drqsdwbc glxb gokunixldec lznuwdvksx zkzhsirruxc sqplhv fzixywkaft fqdkumfgddn bcqp oiwwbo emhk kv qhm xkjp kacbmcd ojh wzvukx oztbexkf lylyv kdspqpa zbykj lnprtlxp af bne ryamumcg oyhldwdlq bqyfxrszuf wyrijnr ysnefsz lhhazrdwsev tll ikibsnpqwg ntzlgc aahfsdeups rushos ihqzyucd mjorscchszm tuppz hxi ssumrevg
It would be helpful if instead of this, it is atleast readable.
I am thinking of using English words and randomly pick from among them to make sentences. Where can I get a big list of words in English language?