Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shivdhar
shivdhar / bingo_card_generator.py
Last active May 2, 2016 15:51
Generate Bingo cards using numpy arrays.
import numpy as np
import random
CARD_SIZE = 5
# Chooses from twice as many numbers as a card can have.
# For example, a card with size 5 can have numbers between 1 and 25*2 -> 50, inclusive (hence the '+ 1')
MIN = 1
MAX = CARD_SIZE**2 * 2 + 1