English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Need an equation or method to calculate the probablity of 2 randomly generated numbers 0 to X equalling each other

2007-03-03 02:04:58 · 5 answers · asked by matt 1 in Science & Mathematics Mathematics

5 answers

Remember to choise X as a positive integer, or your question has
no meaning!!!!

Any number can be picked as the first random number.

There are (X + 1) total choices for the second number.

The chance that the second number is the same as the
first is 1 / (X + 1)

2007-03-03 02:11:04 · answer #1 · answered by Hk 4 · 1 0

I'm going to assume you want the probability on the set of real numbers. Then, if X = 0, p = 1. If X > 0, p = 0.

2007-03-03 02:30:45 · answer #2 · answered by person m 1 · 0 0

Assuming the numbers are integers, it's just 1 out of X+1 or 1/(X+1). This only works for 2 random numbers. Things start getting complicated when when you have 3 or more numbers at once.

2007-03-03 02:11:49 · answer #3 · answered by J 5 · 0 0

How many different numbers does the generator generate? It depends on that.

Say it generated 10 different numbers (eg 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9) then you'd have a 1/100 chance. (1/10 mult by 1/10)

2007-03-03 02:10:34 · answer #4 · answered by _Jess_ 4 · 0 2

assuming they are whole numbers and both 0 and X are included,
required probability is [1 / (X+1) ] ^ 2
sorry, I am wrong; Hk is correct

2007-03-03 02:10:32 · answer #5 · answered by FedUp 3 · 0 2

fedest.com, questions and answers