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 2 which has the analysis, there is a part 1 video with the code.