The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
"The latest trip to Mars has failed catastrophically...hundreds dead! Johnson, what went wrong?"
"Our prediction models are failing, looks like our random number generator is constantly returning zero?"
Two things blow up your theory (although I love the joke).
1) My wife hates cats, and our dog does too. There would never be one in the house, not alive or for long anyway.
2) The aquarium has a lid, and even if by some totally, small, approaching 0, chance a cat did get in, its' attempts to get at the fish would only increase their random movement in an attempt to get away.
If you were to take the camera and take a picture of the aquarium, and then calculate a hash of the resulting image file...would it really be any less "random" than applying to it the subsequent algorithm you intend to create?
Honestly, I was more interested in the replies I would get.
I seem to have received both a quantity and breadth of replies way beyond what I expected.
They span from supportive, to critical, to informative, from serious to hilarious.
It seems there is a tremendous amount of interest on this topic in the community.
Also, I am at the point of planning what to do when I finally give it all up. (Retire, shudder!)
Also, I could use another reason to keep the Aquarium.
BTW: I expected someone to mention the bubbler as a source of random input. Someone mentioned the bubbler but not as a source, only that it caused the fish locations not to be random. (I disagree with that.)
BTW: I thought someone would come up with the fact that playing GILLbert & Sullivan tunes would be greatly appreciated by the fish, causing more or perhaps less random behavior. and more puns of that nature.
Finally, I thank you and everyone else that replied to this post.
Old men need something to do, besides think about young girls and glory days.
Whenever I see your name it feels like I'm talking to myself
Slow Eddie wrote:
BTW: I expected someone to mention the bubbler as a source of random input.
How "random" it needs to be often depends on the application that it would be used for. In the game "Oxygen not included", one can share an entire map by sharing a seed, which is then used to generate the map.
Lots of people here with a background in math and/or statistics - more answers may come tomorrow. Give it a bit time
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
A questioner complained that their SortCompare method in a DataGridView did not work. Looking at the code it was clear that they were sorting integer values as strings, which means alphabetic rather than numeric order. So, I went to MSDN to check the documentation, only to discover that OP had copied the code verbatim. And every sample pertaining to sorting in a DataGridView had exactly the same bad code: DataGridViewSortCompareEventArgs Class (System.Windows.Forms) | Microsoft Docs[^].
Yes, and you understand that. However, the main sample shows the first column labelled "ID" containing numbers (even though as string values). So a relatively inexperienced user would assume that sorting by ID would list numbers 4 and 5 before 11 and 12, rather than the other way round.
Last Visit: 31-Dec-99 19:00 Last Update: 4-Mar-21 9:50