I am working with Python and I would like to create a function that returns me '100' random strings with some random words from a text (every string should have a length from 2 to 5 words - lenght randomly choosen by Python as well).
PS. the words can be repeated
text= ['word_1, word_2, word_3, word4, word5, word6, word7 ... word999]
str_1 = [word3, word2]
(...)
str_n = [word4, word5, word,1, word6]
Aucun commentaire:
Enregistrer un commentaire