This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Generate however many unique bingo cards you require (should be fewer than 10k though). | |
This is not meant to compute ALL possible bingo cards, obviously, but to help set up a | |
nice amount of cards for play. | |
If you require a free space somewhere on the board, you should probably tweak the output, | |
not the generator. | |
I wrote this because existing solutions on stackoverflow were in languages I could not | |
test as easily and many existing generator websites generate crap cards that do not | |
adhere to the bingo number distribution in the 5 rows, so you spend an eternity looking |