Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> r=random.Random()
- >>> r.seed(1)
- >>> colors2=colors
- >>> r.shuffle(colors2)
- >>> print colors2
- ['blue', 'green', 'pink', 'purple', 'red']
- >>> r.seed(1)
- >>> colors2=colors
- >>> r.shuffle(colors2)
- >>> print colors2
- ['green', 'red', 'pink', 'purple', 'blue']
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement