Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/question/public_html/index.php:1) in /home/question/public_html/index.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/question/public_html/index.php:1) in /home/question/public_html/index.php on line 2
Questionville.com - Technology - Programming - Whats more random

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /home/question/public_html/scripts.php on line 1574

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /home/question/public_html/scripts.php on line 1574

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /home/question/public_html/scripts.php on line 1574

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /home/question/public_html/scripts.php on line 1574

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /home/question/public_html/scripts.php on line 1574

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /home/question/public_html/scripts.php on line 1574

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /home/question/public_html/scripts.php on line 1574

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /home/question/public_html/scripts.php on line 1574

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /home/question/public_html/scripts.php on line 1574
Top Answers


Please try not to post duplicate answers... if you see an answer that you want to post, just add a vote to it and you can add a note as well. Thank You
3

0
There has been research...
Submitted By: I wish I knew ( 34 days, 5 hours, 1 minute ago )
There has been some research suggesting that two random numbers added together in a matrix creates orderly space. Though still unpredictable in any given area the study suggested an even distributioon on the whole of orderliness.
3

2
what is the difference...
Submitted By: J-mo ( 34 days, 3 hours and 20 seconds ago )
a truly random number is just that random..and there is no probability if the number is a truly random.
Submitted By: J-mo
and since this is in the programming section...it is impossible to program a completely random number.
Submitted By: Bartek235
agreed
3

1
Don't add
Submitted By: PT&S ( 32 days, 2 hours, 23 minutes ago )
One way to interpret your question is to think of "random number" as referring to a uniformly distributed number in [0,1].  So you might be asking whether to get this by a single random or by adding two and dividing in half.  The Law of Large Numbers should tell you that as you keep averaging, the answer zeros on a single number (the mean), losing its randomness.

More precisely, if X ~ Unif(0,1) and Y likewise but independent of X, then they each have probability density 1 on the range [0,1].  Then Z = X Y has probability density f(z) = z for z in [0,1] and f(z) = 2-z for z in [1,2].  In other words, the distribution concentrates around 1, the midpoint.
Submitted By: PT&S
Sorry, there's a typo.  It should say Z = X Y, i.e., Z = X plus Y.  I don't know whether the plus sign went away by my error or due to something quirky in the interface.
2

0
They are equally random
Submitted By: ljb ( 34 days, 4 hours, 55 minutes ago )
According to the laws of probability, all numbers are equally random
1

0
Better off with just a single random number
Submitted By: ( 32 days, 15 hours, 56 minutes ago )
When you are programming and wish a random number, the best you can do is simulate this. You generate a random number by starting with a seed number and putting that through an algorithm designed to be as unpredictable as possible while also being equally likely to be any number in a range. The returned random number then becomes your seed for your next run. It is hard to design such an algorithm, and so the prudent choice is to use a published algorithm. When you modify the algorithm in even a simple way such as you suggest by adding two such numbers together you are likely to have unintended consequences. Two numbers added together can now fall outside your range and smaller numbers may become a little less likely than larger numbers.