Click here to Skip to main content
16,006,006 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Circular shifting Pin
Nathan Addy2-May-07 8:48
Nathan Addy2-May-07 8:48 
JokeStar Wars Pin
Joeinorange227-Apr-07 13:26
Joeinorange227-Apr-07 13:26 
QuestionGolden Ratio Pin
Joeinorange227-Apr-07 13:22
Joeinorange227-Apr-07 13:22 
AnswerRe: Golden Ratio Pin
Paul Conrad14-Jul-07 10:18
professionalPaul Conrad14-Jul-07 10:18 
QuestionRandom Numbers: Is there anything really random? Pin
Bulky Fellow27-Apr-07 0:13
Bulky Fellow27-Apr-07 0:13 
AnswerRe: Random Numbers: Is there anything really random? Pin
cp987627-Apr-07 2:08
cp987627-Apr-07 2:08 
AnswerRe: Random Numbers: Is there anything really random? Pin
Nathan Addy27-Apr-07 10:58
Nathan Addy27-Apr-07 10:58 
GeneralRe: Random Numbers: Is there anything really random? Pin
cp987627-Apr-07 15:55
cp987627-Apr-07 15:55 
My reply was rather tongue in cheek - as much of a comment on the original post as anything. Clearly there are potentially major problems with using this sort of thing to generate random numbers - predictable diurnal variations to do with time-zones and culture shifts come to mind. That said, if we use a good hash function - the hashes of the posts are probably pretty random.


Nathan Addy wrote:
you have to define what random means

I agree.

Nathan Addy wrote:
for a physical system, there is a "purely mathematical" part, that describes the abstract system. There is also a random part added in though

I don't know what you mean by this - are you simply implying the Heisenberg uncertainty principle, or the uncertainty in your measurement or both?


Nathan Addy wrote:
So if, for instance, you expected the velocity at t=1 to equal -g meters/second, you could sample the actual velocity at t=1 and would get a Gaussian out

Why, and why Gaussian?

Nathan Addy wrote:
So if you want to find purely random numbers, pick a physical system

I agree, sytems based on thermal noise or shot noise I believe are good examples of this - and seem to be the best types of generators of randomness that we have. Interesting question - are they truly random or is it just that our theories at this stage are not good enough?

Nathan Addy wrote:
But there are truly random entities in math. If you're familiar with the halting problem, the probability that a random program (basically a program that consists of a random 1 or 0 everytime the computer needs some input) is completely random

It's been a long time since I studied Turing machines - but you example sounds circular - do you really need random data to generate random output?

Nathan Addy wrote:
You can actually buy a physical random number generator, but unless you are worried about cryptographic stuff, it won't do any better for you than a software RNG, and if it breaks, you might not be able to tell, which isn't a problem with software RNGS

I agree - I have done a reasonable amount of Monte-Carlo simulation and the pseudo-random generators these days are pretty good, just don't use the basic rand() function. If I was a bank generating their RSA key I'd probably want something better.









Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

GeneralRe: Random Numbers: Is there anything really random? Pin
Stephen Hewitt29-Apr-07 18:10
Stephen Hewitt29-Apr-07 18:10 
GeneralRe: Random Numbers: Is there anything really random? Pin
Bulky Fellow29-Apr-07 23:26
Bulky Fellow29-Apr-07 23:26 
GeneralRe: Random Numbers: Is there anything really random? Pin
cp987630-Apr-07 0:54
cp987630-Apr-07 0:54 
AnswerMy Random Info Pages Pin
PICguy30-Apr-07 18:55
PICguy30-Apr-07 18:55 
GeneralRe: My Random Info Pages Pin
cp987630-Apr-07 19:14
cp987630-Apr-07 19:14 
GeneralRe: My Random Info Pages Pin
PICguy30-Apr-07 19:29
PICguy30-Apr-07 19:29 
GeneralRe: My Random Info Pages Pin
cp987630-Apr-07 19:40
cp987630-Apr-07 19:40 
AnswerRe: Random Numbers: Is there anything really random? Pin
Frank Kerrigan2-May-07 5:58
Frank Kerrigan2-May-07 5:58 
QuestionProducer/Consumer Questions Pin
Leslie Sanford26-Apr-07 12:29
Leslie Sanford26-Apr-07 12:29 
AnswerRe: Producer/Consumer Questions Pin
Luc Pattyn26-Apr-07 13:50
sitebuilderLuc Pattyn26-Apr-07 13:50 
GeneralRe: Producer/Consumer Questions Pin
Leslie Sanford29-Apr-07 17:09
Leslie Sanford29-Apr-07 17:09 
QuestionLinked lists vs. Arrays Pin
Leslie Sanford25-Apr-07 9:44
Leslie Sanford25-Apr-07 9:44 
AnswerRe: Linked lists vs. Arrays Pin
Luc Pattyn25-Apr-07 14:55
sitebuilderLuc Pattyn25-Apr-07 14:55 
AnswerRe: Linked lists vs. Arrays Pin
Shog925-Apr-07 14:57
sitebuilderShog925-Apr-07 14:57 
GeneralRe: Linked lists vs. Arrays Pin
Leslie Sanford25-Apr-07 15:04
Leslie Sanford25-Apr-07 15:04 
GeneralRe: Linked lists vs. Arrays Pin
Shog925-Apr-07 15:24
sitebuilderShog925-Apr-07 15:24 
GeneralRe: Linked lists vs. Arrays Pin
Leslie Sanford25-Apr-07 15:38
Leslie Sanford25-Apr-07 15:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.