# Perfect Random Number [closed]

Is there an algorithm to generate a perfect random number? I know that most random number generating algorithms we see are for generating psuedo-random numbers. Is there any algorithm which generated nearly random numbers, like input are less or parameters are... something like that?

-

## closed as not constructive by MJD, Chris Eagle, Davide Giraudo, Andreas Caranti, rschwiebFeb 16 '13 at 13:01

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

Could you define perfect random number? –  Did Feb 16 '13 at 7:40
tbh, i really dont know. i'm giving it a try... this is what i am looking for: a function or algorithm which spits out a number which does not depend on anything. –  tvamsisai Feb 16 '13 at 7:50
Let me be more specific: I have an algorithm producing integers between 1 and 100, I use it 8 times, the results are 42, 42, 42, 42, 42, 42, 42 and 42. Is my algorithm producing perfect random numbers or not? If you think it does, why? If you think it does not, why? –  Did Feb 16 '13 at 7:53
For those who prefer nine. –  Did Feb 16 '13 at 7:59
@tvamsisai This is the problem: computers are deterministic, anything you calculate depends on something. You cannot calculate a number that does not depend on anything. On the other hand you could try to get data that depends on things which we believe that are random (even if it is weakly random, you can condense it), this the idea behind hardware random generators. If you don't have any, you can use processor temperature, networking events, human input, etc. Also see Kolmogorov complexity. –  dtldarek Feb 16 '13 at 8:18