Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Matlab solution to this programming problem:

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 test
Octocat-spinner-32 README
Octocat-spinner-32 bingocarddefaults.m
Octocat-spinner-32 bingoprob.m
Octocat-spinner-32 bingoscript.m
Octocat-spinner-32 checkbingocard.m
Octocat-spinner-32 defaults.m
Octocat-spinner-32 makebingocard.m
Octocat-spinner-32 playbingo.m
Octocat-spinner-32 updatebingocard.m
Matlab solution to by moink

Simulates games of Bingo.  Number of cards, number of runs, size of cards, 
ratio of numbers on cards to available numbers, whether or not there is a 
free space in the centre, are available as parameters to bingoprob.m

This seems inefficient.  I'm thinking I should change the collection of cards
from a cell array to a three-dimensional matrix.  Other than that I can't think 
of any improvements.

To run, run the script bingoscript.m

Output should look like

averagefor1card =


Elapsed time is 2.788495 seconds.

averagefor500cards =


Elapsed time is 219.205069 seconds.

Of course, since it's stochastic, answer will vary slightly every time
Also, elapsed time will depend on the speed of your computer and will also
vary from run to run.
Something went wrong with that request. Please try again.