modify program of generation for saving words in list and choosing them with random.choice()
<p>How to modify program of generation for saving words in list and choosing them with <code>random.choice()</code> previously do  <code>import random</code>?</p>

<p>where is mistake? its not working correct</p>

<pre><code>def generate_model(cfdist,word,num=15):
    for i in range(num):
        word=random.choice.im_class(cfdist
                        [word].keys())


&gt;&gt;&gt; generate_model(cfd,'living')
</code></pre>
