Re: Please put a good PRNG in 0.8.1
Posted: Fri Feb 22, 2013 5:00 pm
I knew I had seen it somewhere. Of course, xkcd.Nixola wrote:http://xkcd.com/221/
I knew I had seen it somewhere. Of course, xkcd.Nixola wrote:http://xkcd.com/221/
Entropy is a different notion than (but connected to) distributions of random variables, so...Hexenhammer wrote:No, I thought I made it clear that I wasn't talking about distribution issues at all.vrld wrote:And by "truly random" sequence you probably mean "high entropy", which is what I wrote in the part you kindly mitted...
Entropy measures how much new information we get by observing stuff. In this example, the entropy of '7, then 1' (formally: H(7|1)) is less than '7, then 2', because we know that '7, then 1' happens more often than other patterns. In other words, it is more interesting to see '7, then 2'. The ideal RNG has entropy H(x) = 1 for any number in the range. `randomB()` does not have this property.Hexenhammer wrote:randomB(1, 10)
May return: 3,6,7,1,1,3,4,8,9.. and if we call it often enough and measure we find that it returns as many 3s as it return 4s etc. (...) However, this "RNG" actually has the characteristic that a 7 is followed by a 1 much more often than by any other number.
That reminds me, why are they not named "love letters"?vrld wrote:Should we be writing PMs instead?
That would necessitate a pink envelope icon, yay.bartbes wrote:That reminds me, why are they not named "love letters"?vrld wrote:Should we be writing PMs instead?
"I consider, that you commit an error. Write to me in love letter"bartbes wrote:That reminds me, why are they not named "love letters"?vrld wrote:Should we be writing PMs instead?
Agreed. I could continue it by arguing against your definition of "uniform distribution" for starters but I have other things to do too - like continuing to develop my first LÖVE gamevrld wrote: Anyway, this discussion is getting slightly out of hand.