programmingpraxis.com
Bingo | Programming Praxis | Page 2
https://programmingpraxis.com/2009/02/19/bingo/2
A collection of etudes, updated weekly, for the education and enjoyment of the savvy programmer. HOWTO: Posting Source Code. February 19, 2009. Function returns a random card:. Take 5 (shuffle (range 1 16) ). Take 5 (shuffle (range 16 31) ). Take 4 (shuffle (range 31 46) ). Take 5 (shuffle (range 46 61) ). Take 5 (shuffle (range 61 76) ) ). Which converts the input list to a vector, shuffles the vector by the Fisher-Yates. Algorithm, then converts the vector back to a list:. N) (vector- list v). The bird...