Skip to content

Instantly share code, notes, and snippets.

View freestok's full-sized avatar

Kray Freestone freestok

View GitHub Profile
## credit to snake_charmer on StackOverflow for animation help https://stackoverflow.com/a/28015795
import numpy as np
import math
import matplotlib.pyplot as plt
import matplotlib.image as mgimg
from matplotlib import animation
def rando(nemo):
couples = math.floor(nemo/2) # get number of couples, round down