Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Singleton Pattern example error #104
The idea being demonstrated here is that you're storing a specific value seeded by the random number generator which you're later comparing. You are however correct that there's a statistical chance the two numbers may be the same. I'll add a note to the book so that this is more clear. Thanks!