02/06/2007, 08:30 AM
i was wondering...how do computers come up with random numbers?
if you think in reverse.
someone presses a button.
the rand(); (or equivalent) function is called.
then what are the options?
there are many ways for a computer to come up with random numbers, but all the ones i can possibly imagine fit in one of these two groups:
1. those that require other random numbers. e.g, the cpu can take a random piece of memory and hash it, and fit it into the specified range « where does it get the randomness for the random piece of memory?
2. those that are not very random at all. e.g, the computer takes the 2nd, 51st and 563rd bytes in memory and does some calculations with them and fits them into the specified range « if someone knows which bytes the pc will take then the calculations can be figured out and the random number can be predicted, and is not random (because it is based on something)
when you think about it, no number can ever be random. randomness is inexistent. think of a random word right now. lets bet you've read or heard it, or seen the object it refers to within the past 24 hours or so. if not, than there must be another reason why this word was given the priority in your brain over other words that are stored in your short-term memory. maybe its because it somehow relates to something you're thinking about. for example, when i did this myself, the word i came up with is 'zorg'. double you tee eff, i thought to myself? zorg? omg, how could i come up with such a word? but after typing this, i realised there are some links. for example, im now writing this thing thinking of random numbers. when i think of random number generating things, i get a weird image of a big flashing machine giving ppl tickets with random numbers on them » zorg? or this. zorg is a text-based game, which i havent seen or played in more than an month. But, before i started writing this ive been reading and learning about C++.NET for a few hours, and the command line interface looks the same as zorg cause its text-based (runs in a dos prompt). also, when i try to make an image in my head of someone saying zorg, the image is a cosplaying nerd dude « otaku and ive been watching a few episodes of Lucky Star today as well which stars an otaku manga freak.
so even though the links are somewhat weak, and sometimes hard to describe at all, there are reasons for certain numbers, words, thoughts or actions to pop out at certain moments or when triggered by other numbers, words, thoughts, actions or whatevers. randomness is inexistent. if you exaggerate this even more, this would mean that nothing in the universe is ever random, but very indirectly related to something else at best. this is also what science relies on. so it all makes sense. and then if you think about it even more (but this conclusion depends on your religion, i am atheist (aka objective) and therefore this is what my mind comes up with), then if random is inexistent, and gods and such things as 'mother nature' or 'luck' are the most random thing you can think of, then they must be inexistent as well. come to think of it, these so called (but inexistent) 'random' influences that happen to people, are the things that trigger the mind to conclude that there must be a god or something controlling it. but as i said before, even though they may seem improbably, impossible or you can't come up with them because they are so very indirectly or so very slightly related, there MUST be a reason for something else to happen. the fact that humans were/are unable to precisely identify these links, leads to the illusion that they are eitherrandom or controlled by something unknown. however, if all humans were to completely forget everything, and simply remember that randomness is inexistent and EVERYTHING has a cause in some way, then things such as gods and therefore religion would have NEVER EVER existed. and thus i conclude, that religion is based on ignorance.
wow omg
this stuff ^^ above was all typed up at the precise moment that i was thinking it up, concluding myself after every sentence i typed.. woot. i had no idea this would turn out to be a religion bashing story at all and i couldve covered much more but i limited myself to this along the way cause that's just where my head went. oh and ive still got to say that even if computers really could come up with 'random' numbers then they would STILL not be random because computers are programmed and designed by humans, who have certain thoughts etc etc etc. randomness is inexistent in my opinion now, taking down with it coincidence, religion and any other results of the lack of understanding.
comments?
by the way don't be easy on me or try to refrain from insulting anybody, i didnt either. maybe i should put stuff like this on my own site though but i don't really have one :P
if you think in reverse.
someone presses a button.
the rand(); (or equivalent) function is called.
then what are the options?
there are many ways for a computer to come up with random numbers, but all the ones i can possibly imagine fit in one of these two groups:
1. those that require other random numbers. e.g, the cpu can take a random piece of memory and hash it, and fit it into the specified range « where does it get the randomness for the random piece of memory?
2. those that are not very random at all. e.g, the computer takes the 2nd, 51st and 563rd bytes in memory and does some calculations with them and fits them into the specified range « if someone knows which bytes the pc will take then the calculations can be figured out and the random number can be predicted, and is not random (because it is based on something)
when you think about it, no number can ever be random. randomness is inexistent. think of a random word right now. lets bet you've read or heard it, or seen the object it refers to within the past 24 hours or so. if not, than there must be another reason why this word was given the priority in your brain over other words that are stored in your short-term memory. maybe its because it somehow relates to something you're thinking about. for example, when i did this myself, the word i came up with is 'zorg'. double you tee eff, i thought to myself? zorg? omg, how could i come up with such a word? but after typing this, i realised there are some links. for example, im now writing this thing thinking of random numbers. when i think of random number generating things, i get a weird image of a big flashing machine giving ppl tickets with random numbers on them » zorg? or this. zorg is a text-based game, which i havent seen or played in more than an month. But, before i started writing this ive been reading and learning about C++.NET for a few hours, and the command line interface looks the same as zorg cause its text-based (runs in a dos prompt). also, when i try to make an image in my head of someone saying zorg, the image is a cosplaying nerd dude « otaku and ive been watching a few episodes of Lucky Star today as well which stars an otaku manga freak.
so even though the links are somewhat weak, and sometimes hard to describe at all, there are reasons for certain numbers, words, thoughts or actions to pop out at certain moments or when triggered by other numbers, words, thoughts, actions or whatevers. randomness is inexistent. if you exaggerate this even more, this would mean that nothing in the universe is ever random, but very indirectly related to something else at best. this is also what science relies on. so it all makes sense. and then if you think about it even more (but this conclusion depends on your religion, i am atheist (aka objective) and therefore this is what my mind comes up with), then if random is inexistent, and gods and such things as 'mother nature' or 'luck' are the most random thing you can think of, then they must be inexistent as well. come to think of it, these so called (but inexistent) 'random' influences that happen to people, are the things that trigger the mind to conclude that there must be a god or something controlling it. but as i said before, even though they may seem improbably, impossible or you can't come up with them because they are so very indirectly or so very slightly related, there MUST be a reason for something else to happen. the fact that humans were/are unable to precisely identify these links, leads to the illusion that they are either
wow omg
this stuff ^^ above was all typed up at the precise moment that i was thinking it up, concluding myself after every sentence i typed.. woot. i had no idea this would turn out to be a religion bashing story at all and i couldve covered much more but i limited myself to this along the way cause that's just where my head went. oh and ive still got to say that even if computers really could come up with 'random' numbers then they would STILL not be random because computers are programmed and designed by humans, who have certain thoughts etc etc etc. randomness is inexistent in my opinion now, taking down with it coincidence, religion and any other results of the lack of understanding.
comments?
by the way don't be easy on me or try to refrain from insulting anybody, i didnt either. maybe i should put stuff like this on my own site though but i don't really have one :P