Talk:Random sentence from book

From Rosetta Code
Revision as of 10:56, 15 February 2021 by rosettacode>Paddy3118 (→‎Markov chain?: Weight.)

Markov chain?

Isn't this pretty much exactly Markov chain text generator? Other than being run on War of the Worlds rather than Alice in Wonderland and Wizard of Oz? I mean, it is almost exactly the same instructions; this task just omits mentioning the fact that it is Markov chaining. --Thundergnat (talk) 19:46, 12 February 2021 (UTC)

I didn't remember that when creating this task. There is however a notable difference:
"... use a weighted random choice ..."
In this task words that are more likely to follow words, should be more likely to occur next, These weights need accumulating and applying in this task whereas that task does not require it.
--Paddy3118 (talk) 10:56, 15 February 2021 (UTC)