import random
x = [1, 2, 3, 4, 5, 6]
random.shuffle(x)
print x
I know how to shuffle a list, but is it possible to shuffle it with a parameter such that the shuffling produces the same result every time?
Something like;
random.shuffle(x,parameter)
and the result is the same for this parameter.
Say parameter is 4 and the result is [4, 2, 1, 6, 3, 5] every time.