From page 62 of The Practice of Programming:
- set w1 and w2 to the first two words in the text
- print w1 and w2
- loop:
- randomly choose w3, one of the successors of prefix w1 w2 in the text
print w3
print w1 and w2 by w2 and w3
repeat loop
Don't expect romance, you only get computing here.
No comments:
Post a Comment