Skip to content

Instantly share code, notes, and snippets.

Created May 7, 2021 02:35
What would you like to do?
Predictable Shuffle with Python
import random
shuffle_key = "QRUzaKNB4V5pparzJWTa"
# Imagine we have a list of images that's 200k items long
frame_list = [*range(1,200000)]
# Shuffle the frame list with the key
# Display our result
for x in range(10):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment