Hello @Roshni,
Python has a built-in module called <random>. It exports a public method <shuffle(<list>)> which can randomize any input sequence.:
import random
list = [2, 18, 8, 4]
print "Prior Shuffling - 0", list
random.shuffle(list)
print "After Shuffling - 1", list
random.shuffle(list)
print "After Shuffling - 2", list