True Random Number Generator

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Nov 2007
Posts: 390
Reputation: skatamatic will become famous soon enough skatamatic will become famous soon enough 
Solved Threads: 39
skatamatic skatamatic is offline Offline
Posting Whiz

Re: True Random Number Generator

 
0
  #31
Apr 28th, 2009
Originally Posted by kelechi96 View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 1,602
Reputation: jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of 
Solved Threads: 120
jephthah's Avatar
jephthah jephthah is offline Offline
Posting Virtuoso

Re: True Random Number Generator

 
0
  #32
Apr 28th, 2009
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."
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 39
Reputation: kelechi96 is an unknown quantity at this point 
Solved Threads: 0
kelechi96 kelechi96 is offline Offline
Light Poster

Re: True Random Number Generator

 
0
  #33
Apr 29th, 2009
Originally Posted by skatamatic View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2,834
Reputation: niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute 
Solved Threads: 297
Moderator
Featured Poster
niek_e's Avatar
niek_e niek_e is offline Offline
Roasting Maven

Re: True Random Number Generator

 
0
  #34
Apr 29th, 2009
Originally Posted by jephthah View Post
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 niek_e; Apr 29th, 2009 at 5:18 am.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 39
Reputation: kelechi96 is an unknown quantity at this point 
Solved Threads: 0
kelechi96 kelechi96 is offline Offline
Light Poster

Re: True Random Number Generator

 
0
  #35
Apr 29th, 2009
Originally Posted by niek_e View Post
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 !!!
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 1,602
Reputation: jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of 
Solved Threads: 120
jephthah's Avatar
jephthah jephthah is offline Offline
Posting Virtuoso

Re: True Random Number Generator

 
0
  #36
Apr 29th, 2009
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.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC