Can we produce random numbers(nos. which cannot be predicted)?
You are right, a computer cannot produce a truly random number, because if you run the function again with the same starting conditions you will always get the same number out. Computers create pseudo-random numbers, which have an apparently random distribution but actually are predictable. One way to get around this is to use a time-dependant variable as the seed for the random number generator function. You could use the computer’s millisecond counter for instance. If the program is started by a human, then the output will effectively be random since humans are pretty random. The only way to get true randomness is to tap into a truly random process. A convenient one is noise in electronic circuits, such as the noise created by current flowing across a semiconductor junction. It comes from events occurring at the quantum level, which are genuinely random.