random reorder list and reverse in R code example Example: python randomize list import random random.shuffle(list)