Pure Randomness?

Status
Not open for further replies.

Bitruder

Ars Scholae Palatinae
885
I've been pondering the idea of how to truely generate random numbers. It's not that current functions available to me are not good enough, it's just that I was thinking there would be some neat ways of doing it.

One idea I had involved using video. You could set up a camera pointed at a lava lamp or something that was constantly changing. Capture the video, pick a random pixel using whatever random number generator you already have, then take the colour of that pixel and apply some formula to arrive at a new number.

Also, what about capturing static from the airwaves and using the sound to generate random numbers? I assume the static can be considered random fluctuations?

Just some ideas. What do you guys think?
 

splicer

Ars Tribunus Militum
2,135
Originally posted by PeterB:
Sample noise due to heat, like Intel's RNG.

I agree, thermal noise is the way to go. If you have an Intel proc you are set, it is even accessable through MS CryptoAPI. Measuring time between radioactive decay events is another good method. Stuff like entropy pools and HAVEGE are hacks and not in the same class.
 

stickboy

Ars Tribunus Angusticlavius
6,218
Subscriptor
Originally posted by Midlands:
Ironically, I think my very first computer, circa 1981, had this. I was 6. It was an Atari 400; its random-number generator was a chip that was sensitive to atmospheric weather noise, or something like that.
It was intended to be that way, right? Not just some failing piece of hardware that happened to produce some seemingly random numbers? ;)
 
One idea I had involved using video. You could set up a camera pointed at a lava lamp or something that was constantly changing. Capture the video, pick a random pixel using whatever random number generator you already have, then take the colour of that pixel and apply some formula to arrive at a new number.
Already been done. I can't remember who did this (some big company I think), but it was pretty cool. They had a number of lavalamps set up in a pattern, and used a camera to shoot pictures and generated numbers out of the pics. Also, they implemented the feature that a lavalamp shouldn't be on for more than 8h in a row, so they had extra lamps, and an automatic switch that flicked them on and off.

Edit: Apparently it was SGI who did this. But I cannot reach the website on http://lavarand.sgi.com.
 

Chronoscender

Ars Scholae Palatinae
965
Ahh, but what is random?
Can you give a definition?

Defining what is random is easy, even without consulting a dictionary.

Random is synonymous with unpredictable. With any given information, all outcomes are still equally likely. A random number is essentially an unpredictable number. Something is random when given any amount of information (short of omniscience), it still cannot be predetermined. Since only the omniscient have access to all information, things like noise due to heat, or things that can only be measured by and/or are only known to the generator of the random number can be implemented to generate sufficiently unpredictable series of numbers.

-Chrono
 
Read the Knuth TAOCP Second Volume...

As for what is really random...there is probably a team of philosophers that are arguing that right now...

There are truly random sequences...

According to Knuth...there was a random sequence on a CD that comes from sampling White(all frequencies) noise cross sampled with Rap music...hehe....

He called it "Black and White noise" hehe...LOL

MD
 

bash666

Ars Legatus Legionis
24,417
Originally posted by nsample:
What is the point of posting a complete fabrication and then attributing an off-color joke to Don Knuth?

That bit Milkman Dan posted about Knuth (esp. the "joke") is a complete lie.

CD sampling experiments have been done, do not appear in volume 2, are not boasted as "random" by Knuth, and have never featured sketchy (at best) humor attached to them.

]http://www.maa.org/mathland/mathland_4_22.html<HR></BLOCKQUOTE>

Marsaglia, IMO probably the leading expoert of RNG's and PRNGs, advocates using low frequency sampling of Rap CD's and calls the term Black noise. You can find this information on his web page(U of Florida or Fla St, I can't recall).

A random number is essentially an unpredictable number

This is incorrect. A random number is a number which has at least on unpredictabel component, but may be arbitrarily pretictable(as long as the predictability is less than one)
 

splicer

Ars Tribunus Militum
2,135
Originally posted by Joon H. Huh:
Random number generator... unless we can "capture" randomness, a perfectly random random number generator cannot be created.

-Huh

Perfect random number generators are not hard to make and exist everywhere in nature. As I mentioned, decay events from a radioactive source and thermal noise are two examples. Maybe you mean a perfect pseudorandom number generator cannot be created. This is true by definition.
 
What is the point of posting a complete fabrication and then attributing an off-color joke to Don Knuth?

That bit Milkman Dan posted about Knuth (esp. the "joke") is a complete lie.

That is not a fabrication...it is true! Read the second volume of TAOCP... he makes that same joke... I have the damned book and am looking at it right here...

He doesn't include the CD...he alludes to a book which includes the CD...it is in the references of the second edition...

Look it up before you flame me...

MD
 

Bitruder

Ars Scholae Palatinae
885
Couldn't we say, more generally, that any "pattern" of numbers for which we can not derive a formula for calculating the next number in the series can be considered random? For example, people here have sited Thermal Noise. At this point, we consider this to be random. But what happens if in 20 years scientists are able to figure out how to predict thermal noise? Would the numbers generated in that fashion no longer be considered random?

Now, philosophically speaking, if there is a common formula for predicting everything in the universe, would that mean that randomness does not exist?
 
Originally posted by Bitruder:
Couldn't we say, more generally, that any "pattern" of numbers for which we can not derive a formula for calculating the next number in the series can be considered random? For example, people here have sited Thermal Noise. At this point, we consider this to be random. But what happens if in 20 years scientists are able to figure out how to predict thermal noise? Would the numbers generated in that fashion no longer be considered random?

Now, philosophically speaking, if there is a common formula for predicting everything in the universe, would that mean that randomness does not exist?
Since we necessarily can't know everything about a system, it strikes me that there will always be unpredictable systems. Even if there is some formulaic mechanism, we don't know what it is, nor what values to stick into it.
 

Xyzzy

Ars Tribunus Angusticlavius
9,827
Moderator
Off topic, but it is fun to see if certain sequences are random or not here...

I'm not a mathematician, so here is a question that has been bothering me...

Say you have a random number generator that spits out an integer sequence that is actually a pattern... Obviously, it is theoretically possible... Anyways, is the sequence random still? Maybe I didn't phrase that right, but it has been bothering me since this thread started...
 
All finite sequences probabilistically correspond to some segment of a long "random" sequence that is 2^N bits long, where N is the number of bits in the original sequence. So, yes.

"Random" generators always generate some fragments that appear to have a pattern, otherwise they're not generating many different sequences. And if that's the case, then it's not so random after all. :)
 
The Heisenberg Principle makes sure we can never know a system completely.

No the Mathematics of Quantum Mechanics is what makes sure we don't know a system completely... the Heisenberg Principle is just a statement of what is mathematically proven about Quantum Mechanics...

I am not big on technicalities but this one is important...

MD
 
Status
Not open for further replies.