Birthday paradox doubt

could not understand the code of birthday paradox on online.codingblocks.com . please explain