I was looking at some statistical evaluations of a dice roll and stumbled onto this strange result:
import random
# faces of a dice
dice = [1, 2, 3, 4, 5, 6]
rolls = []
for k in range(3):
random.shuffle(dice)
#test
print dice
rolls.append(dice)
# test
print rolls
"""
my strange output -->
[3, 2, 6, 1, 5, 4]
[6, 2, 1, 5, 4, 3]
[1, 5, 2, 6, 3, 4]
[[1, 5, 2, 6, 3, 4], [1, 5, 2, 6, 3, 4], [1, 5, 2, 6, 3, 4]]
"""