943,907 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 4317
  • C++ RSS
You are currently viewing page 4 of this multi-page discussion thread; Jump to the first page
Apr 28th, 2009
0

Re: True Random Number Generator

Click to Expand / Collapse  Quote originally posted by kelechi96 ...
See this is the awnser I was looking for THANK YOU +rep but how do i do this ?
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.
Reputation Points: 352
Solved Threads: 109
Master Poster
skatamatic is offline Offline
779 posts
since Nov 2007
Apr 28th, 2009
0

Re: True Random Number Generator

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."
Reputation Points: 2143
Solved Threads: 178
Posting Maven
jephthah is offline Offline
2,567 posts
since Feb 2008
Apr 29th, 2009
0

Re: True Random Number Generator

Click to Expand / Collapse  Quote originally posted by skatamatic ...
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.
Ok so all I need now is the kit which probably will be in the physics/electronics/design and technology classrooms I'll ask my teacher Mr Stephenson if I can hope he says yes ! otherwise me and my father will build it at home.
Reputation Points: 10
Solved Threads: 0
Light Poster
kelechi96 is offline Offline
45 posts
since Apr 2009
Apr 29th, 2009
0

Re: True Random Number Generator

Click to Expand / Collapse  Quote originally posted by jephthah ...
this is retarded.
...
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)
Last edited by Nick Evan; Apr 29th, 2009 at 5:18 am.
Moderator
Featured Poster
Reputation Points: 4142
Solved Threads: 394
Industrious Poster
Nick Evan is offline Offline
4,132 posts
since Oct 2006
Apr 29th, 2009
0

Re: True Random Number Generator

Click to Expand / Collapse  Quote originally posted by niek_e ...
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)
Perfect resopnce +rep this is SOLVED DANIWEB I LOVE YOU !!!
Reputation Points: 10
Solved Threads: 0
Light Poster
kelechi96 is offline Offline
45 posts
since Apr 2009
Apr 29th, 2009
0

Re: True Random Number Generator

okay.

i agree that, in the spirit of P.T. Barnum, kelechi gave a mighty fine answer.

cheers.

.
Last edited by jephthah; Apr 29th, 2009 at 12:09 pm.
Reputation Points: 2143
Solved Threads: 178
Posting Maven
jephthah is offline Offline
2,567 posts
since Feb 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: API to get CPU utilization
Next Thread in C++ Forum Timeline: need help..want to input only alphabets





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC