Which is more random?
rand()
OR
rand() + rand()
OR
rand() * rand()
Just how can one determine this? I mean. This is really puzzling me! One feels that they may all be equally random, but how can one be absolutely sure?!
Anyone?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The concept of being “more random” doesn’t really make sense. Your three methods give different distributions of random numbers. I can illustrate this in Matlab. First define a function
fthat, when called, gives you an array of 10,000 random numbers:Now look at the distribution of your three methods.
Your first method,
hist(f())gives a uniform distribution:Your second method
hist(f() + f())gives a distribution which is peaked in the centre:Your third method
hist(f() .* f())gives a distribution where numbers close to zero are more likely: