mercredi 2 novembre 2016

Javascript random & concatenate

I need a script that will assemble random, preset phrases from several lists, in order.

I.E.

List one: The, she, it, they
List two: Was, didn't, has not, will not 
List three: See, think, go, walk

I need to concatenate one random item from list's one, two, and three to create a random sentence like:

She didn't go. 

What is the best way to do this?




Aucun commentaire:

Enregistrer un commentaire