title: Sampling with repetition in Python
body: <p>I have a string with 50ish elements, I need to randomize this and generate a much longer string, I found <code>random.sample()</code> to only pick unique elements, which is great but not fit for my purpose, is there a way to allow repetitions in Python or do I need to manyally build a cycle?</p>