| | |
True Random Number Generator
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Nov 2007
Posts: 390
Reputation:
Solved Threads: 39
•
•
•
•
See this is the awnser I was looking for THANK YOU +rep but how do i do this ?
This is a pretty complex method to do a very simple task (generating a random number), and while it is possible it is pretty impractical. If you are new to programming, I would sugguest spending your time on other things.
this is retarded.
you won't get a reading from the free electrons in the air. you'll get a reading from the noise of the instrumentation pathway, which is deterministic.
now, i'm glad you're the hero of this 13-year-old's fantastical musings, but really, you ought to take your own advice about "spending your time on other things."
you won't get a reading from the free electrons in the air. you'll get a reading from the noise of the instrumentation pathway, which is deterministic.
now, i'm glad you're the hero of this 13-year-old's fantastical musings, but really, you ought to take your own advice about "spending your time on other things."
•
•
Join Date: Apr 2009
Posts: 39
Reputation:
Solved Threads: 0
•
•
•
•
This would require a data aquisition card, an instrumentational amplifier attached to a very sensitive inductor, and amplified so that the minute changes in electrical forces in the air generate a voltage of between 0 and 5V (a bit of knowledge of instrumentation would be required). A DAQ (data aquisition card) will have a built-in analog to digital converter, so if you just wire up this small amplified 'static sensor' to one of its inputs, it will store the value (from input 0-5V being output 0-4096) in a register. How you access this register depends on the DAQ setup, which can be an entire course on its own.
This is a pretty complex method to do a very simple task (generating a random number), and while it is possible it is pretty impractical. If you are new to programming, I would sugguest spending your time on other things.
You're right, it's major overkill. But it's the only answer in this thread remotely close to what the OP asked.
@OP: If you really want to use a microphone (and you use windows) click here. Then just use the x-first bytes from the data you got and it will be another way to get a semi-random-number.
My personal favorite for a random number is the Mersenne twister. (Lot's of free implementations available)
@OP: If you really want to use a microphone (and you use windows) click here. Then just use the x-first bytes from the data you got and it will be another way to get a semi-random-number.
My personal favorite for a random number is the Mersenne twister. (Lot's of free implementations available)
Last edited by niek_e; Apr 29th, 2009 at 5:18 am.
•
•
Join Date: Apr 2009
Posts: 39
Reputation:
Solved Threads: 0
•
•
•
•
You're right, it's major overkill. But it's the only answer in this thread remotely close to what the OP asked.
@OP: If you really want to use a microphone (and you use windows) click here. Then just use the x-first bytes from the data you got and it will be another way to get a semi-random-number.
My personal favorite for a random number is the Mersenne twister. (Lot's of free implementations available)
![]() |
Similar Threads
- C++ Program using Stacks, and Random Number Generator. Please Help.... (C++)
- Random Parralel Array (C++)
- Random number generation (C)
- random numbers, and 2 dimensional array (C++)
- C++ Random Numbers (C++)
- using random number generator "globally" in a c++ class (C++)
- choose a random element from a sequence (C++)
- random function generator (C)
- generating random numbers into an array.. (Java)
Other Threads in the C++ Forum
- Previous Thread: API to get CPU utilization
- Next Thread: need help..want to input only alphabets
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template test text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






