Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Patrick Cole
5,189 PointsThis can't be a coincidence, can it?
I was fooling around with the random number generator in javascript and received the number 55 three times out of six. I have attached a photo of what I saw in the console.
4 Answers
Erik McClintock
45,783 PointsPatrick,
It is a totally random number that you're generating there, so it just happened that 55 was the number chosen 3 out of 6 times. To truly see the randomness, you would need a larger set of data to inspect. Try running it 100 times, and you should get a better indication of this.
Erik
Craig Dennis
Treehouse TeacherSounds like it's time to go find a roulette table. ;)
Myers Carpenter
6,421 PointsYou are using the wrong random number generator. jk.
This is known as the Birthday Paradox. Our intuition says we shouldn't see repeats in random sets of numbers as often as we do.
Andrew Chalkley
Treehouse Guest TeacherAnything that's probable is possible.