How Does This Work

  • Thread starter zelldot
  • Start date
  • #1
25
0

Main Question or Discussion Point

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?
 

Answers and Replies

  • #2
EnumaElish
Science Advisor
Homework Helper
2,304
124
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:
  • #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.
 
  • #4
38
0
Link

Please see the link below.

http://web.utk.edu/~rpevey/NE582/lesson3.htm [Broken]
 
Last edited by a moderator:

Related Threads for: How Does This Work

Replies
15
Views
2K
Replies
2
Views
1K
Top