Random Number Generator

I'm searching for a random number generator based on the movement of my mouse, on the windows messaging stack ...

shortly: i'm searching for a ready programmed java class for TRUE random numbers.

Thanks in advance !
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm not clear on what you mean by TRUE random numbers. You may be able to find a good random seed (for a pseudo random number generator) by inspecting mouse movement or the messages it generates, but I doubt mouse movement in general is going to be random. Mouse movement is deliberate and geared to specific effects and actions. And the messaging activity that result will likely exhibit patterns as well. Java does provide a fine pseudo-random number generator. Are you sure that won't be sufficient? What are you trying to accomplish?
TSchockAuthor Commented:
hmmm, it's funny ... the better way is AS TRUE AS possible
really TRUE random numbers are based on radioactivity, on radiation, on some other phyisical bases.
devices to produce really good random numbers are expensive ( and not easy to handle ( radioacivity ))
I'm searching a method to generate very good random numbers
you can use different sources to avoid patterns:
1. mouse movement
2. hard disk activity
3. network traffic
4. windows messages
5. etc.
then hash these with md5 or idea and you have really good random numbers ( without patterns i hope ;) )
Yes, radioactivity would produce TRUE random numbers. The question remains though, are you sure you need this level of "randomness". Even programs that simulate plasma flows manage with pseudo random number generators. Are you sure you'd be able to tell the difference between the output stream of a reasonable pseudo random number generator, and a "real" one. How are you planning on verifying that this "true" random number generator doesn't have hidden patterns? Eyeball it? Do you have a specific need for this? Or is it an idle research project?
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

TSchockAuthor Commented:
we do have an idea to implement these random numbers as a seed for a blowfish encryption
we want to build a secure channel over internet and we have to avoid patterns in the key sequence
we have to build somewhat more than 3000 secure channels without patterns in the key ...
maybe a "normal" pseudo generator is secure enough, but how can i proove it ?
maybe, it is impossible to test the real rng, but what is "enough"
OK, I'll grant that is a serious application that you need serious random numbers for. Here is a link that might be helpful:


This is a researched and analyzed random number generator that is fast and has a verified lack of patterns.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TSchockAuthor Commented:
great ...

this link is a good root to search more ...
http://nicewww.cern.ch/~hoschek/colt/index.htm is very good.
Thanks imladris a friend of mine wanted this for some financial stuff (heard of Risk Analysis?.....)

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.