Browse Teasers
Search Teasers

## Random Numbers with Constraints

Probability puzzles require you to weigh all the possibilities and pick the most likely outcome.

 Puzzle ID: #14704 Fun: (2.18) Difficulty: (2.11) Category: Probability Submitted By: j72883 Corrected By: Winner4600

Generate two random numbers from 1 to 9, inclusive. Call them n1 and n2. What is the probability that | n1 - n2 | > 5?

## What Next?

See another brain teaser just like this one...

Or, just get a random brain teaser

If you become a registered user you can vote on this brain teaser, keep track of
which ones you have seen, and even make your own.

 Cakey1987 Sep 14, 2003 Huh? Oh wait... || means absolute value. It's been so long that I forgot about that. jimbo Sep 15, 2003 I like that. Simple but makes you think. Do me another one! Katelin Dec 02, 2003 I liked that one, too. You can simplify 12/81, I think. Poker Aug 01, 2004 Yes, you can. To 4/27. seanlandrews Nov 07, 2005 I only came up with half as many. 9-1 is greater than 5, but 1-9 is not. brainjuice Mar 27, 2006 i think that isn't called combination. if 1-9 is the same as 9-1 then it is combination. but if 1-9 is not the same as 9-1 then it called permutation. javaguru Dec 17, 2008 The answer is 9/64 = 0.140625. The answer 12/81 (0.148148148...) WOULD be correct IF the problem had stated two random integers instead of two random numbers. With two random numbers, it's only possible for the difference to be greater than 5 if the lower number is less than 9-5 = 4 and the higher number is greater than 1+5=6. Each of these has a (4-1)/(9-1) = 3/8 probability. Either the first or second number can be in the low range, giving a (3/^2 * 2 = 18/64 probability. Of these cases, if n is the low number then the probability varies with from 1 to 0 as n moves from 1 to 4. This gives an average probability of 1/2, so the probability that |n1 - n2| > 5 is (18/64)*(1/2) = 9/64. javaguru Dec 17, 2008 Arrg! Of course instead of the smiley face above it should read [3/8]^2*2 = 18/64