Python | How to append elements to a list randomly
<p>Is there a way to append elements to a list randomly, built in function</p>

<p>ex:</p>

<pre><code>def random_append():
     lst = ['a']
     lst.append('b')
     lst.append('c')
     lst.append('d')
     lst.append('e')
     return print lst
</code></pre>

<p>this will out put <code>['a', 'b', 'c', 'd', 'e']</code></p>

<p>But I want it to add elements randomly and out put something like this:
<code>['b', 'd', 'b', 'e', 'c']</code></p>

<p>And yes there's a function random.shuffle() but it shuffles a list at once which I don't require, I just want to perform random inserts only.</p>
