Answer by Wil for Understanding "randomness"
When in doubt about what will happen to the combinations of your random numbers, you can use the lessons you learned in statistical theory.In OP's situation he wants to know what's the outcome of X*X =...
View ArticleAnswer by dvhh for Understanding "randomness"
The answer would be it depends, hopefully the rand()*rand() would be more random than rand(), but as:both answers depends on the bit size of your valuethat in most of the cases you generate depending...
View ArticleAnswer by Fordi for Understanding "randomness"
Floating randoms are based, in general, on an algorithm that produces an integer between zero and a certain range. As such, by using rand()*rand(), you are essentially saying...
View ArticleAnswer by Eric Towers for Understanding "randomness"
Most rand() implementations have some period. I.e. after some enormous number of calls the sequence repeats. The sequence of outputs of rand() * rand() repeats in half the time, so it is "less random"...
View ArticleAnswer by staticsan for Understanding "randomness"
Some things about "randomness" are counter-intuitive. Assuming flat distribution of rand(), the following will get you non-flat distributions:high bias: sqrt(rand(range^2))bias peaking in the middle:...
View ArticleAnswer by Dr. belisarius for Understanding "randomness"
Just a clarificationAlthough the previous answers are right whenever you try to spot the randomness of a pseudo-random variable or its multiplication, you should be aware that while Random() is usually...
View ArticleAnswer by Matthew Scharley for Understanding "randomness"
Neither is 'more random'.rand() generates a predictable set of numbers based on a psuedo-random seed (usually based on the current time, which is always changing). Multiplying two consecutive numbers...
View ArticleAnswer by abelenky for Understanding "randomness"
"random" vs. "more random" is a little bit like asking which Zero is more zero'y.In this case, rand is a PRNG, so not totally random. (in fact, quite predictable if the seed is known). Multiplying it...
View ArticleUnderstanding "randomness"
I can't get my head around this, which is more random?rand()OR:rand() * rand()I´m finding it a real brain teaser, could you help me out?EDIT:Intuitively I know that the mathematical answer will be that...
View Article