Since the birthdays can be on any day of the year and there are 365 days in a year, so we have to consider all the 365 days to calculate the probability using the simulation. This way we are will be able to match both the day and the month of the birth.
So, from the given options, option B is the most suitable
Assign numbers 1 through 365 to represent the days of the year.