Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How Does This Work

  1. Sep 22, 2005 #1
    In the world of physics everything is given a number and everthing can be worked out...

    ...when im programing and i give the computer the code rand(1,50) to generate a random number from 1 to 50, how does it pick, if the computer is so logical? how can something so logical be totally unlogical with that one bis of code? a random number is not logical is it? if that makes sence at all?
     
  2. jcsd
  3. Sep 22, 2005 #2

    EnumaElish

    User Avatar
    Science Advisor
    Homework Helper

    They are not random although appear to be. The technical term is "pseudo random number." See this link. Also see Wikipedia.
     
  4. Sep 28, 2005 #3
    yeah, there are no "random" numbers in computers. only "pseudo random" numbers. e.g., in C/C++, the "pseudo random" number is generated from the system time. so its not really "random". it depends on the system time.
     
  5. Sep 28, 2005 #4
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?