pimento[w09]$ python3 Python 3.6.6 (default, Sep 12 2018, 18:26:19) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux Type "help", "copyright", "credits" or "license" for more information. >>> L = list(range(5)) >>> L [0, 1, 2, 3, 4] >>> import random >>> random.shuffle(L) >>> L [1, 4, 0, 2, 3] >>> L.sort() >>> L [0, 1, 2, 3, 4] >>>