Explanation of birthdays problem on assignment h5 including getting started on the code. Notes on the code and video are at http://cs.indstate.edu/~jkinne/cs151-...
For more on the birthday problem, search the web for the birthday paradox, and you will find different types of analysis. This video is part 1 which gives the code, there is a part 2 video with the analysis.