Hi,
I need to create a table with random sentences. I need lines that are upto 1000 characters in lenght. I need a random sentence generator that will create sentences and output it to a text file. The sentences should be of lenght varying from 1 to 1000.
Do the sentences need to make sense? I am referring to proper english grammar -- a noun and a verb and so on.
Do the words need to make sense? Does the text need to contain "real" words, or are random arrangements of letters ("lrea" for instance) acceptable?
store your sentences to array values
STRSENT[1]=1st sentence
STRSENT[2]=2nd sentence
use the RANDOM function (RNDM=$RANDOM),
then correlate the random number of 1-32k to your actual possibilities
for example, if 12 possible sentences, MYRNDM=12*$RNDM/32k
to get a number from 1-12 (may need to play with that a bit)