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


    User Avatar
    Science Advisor
    Homework Helper

    They are not random although appear to be. The technical term is "pseudo random number." See this http://acm.uva.es/p/v3/350.html [Broken].
    Last edited by a moderator: May 2, 2017
  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

    Please see the link below.

    http://web.utk.edu/~rpevey/NE582/lesson3.htm [Broken]
    Last edited by a moderator: May 2, 2017
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook