Qbasicnews.com
December 09, 2019, 06:59:31 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 2 3 [4]
  Print  
Author Topic: Random Numbers  (Read 18584 times)
Hexadecimal Disaster
Been there, done that
*****
Posts: 1123



« Reply #45 on: May 26, 2003, 04:10:56 AM »

Quote from: "Glenn"
...and why the length of time determines randomness.


I think that he's talking about the amount of random data before it wraps.

Let me see... 3 minutes of WAV data, sample rate 44100, 16 bits, mono...

You'll end with 7,937,999 samples before the data wraps. The function RND will produce a series of 16,777,206 random numbers and then repeat, if my memory serves me well. Thus, 3 minutes of WAV data are still insuficient to match the built-in function.
Logged

img]http://usuarios.vtr.net/~disaster/sigs/annoyizer.php[/img]
Glenn
I hold this place together
*****
Posts: 786



WWW
« Reply #46 on: May 26, 2003, 04:18:01 AM »

is never going to wrap and whether or not a 3-minute sequence of it is as much data as that from RND before RND wraps does not relate to its randomness.  (It will be more random than RND.  Smiley  )
Logged

ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
Hexadecimal Disaster
Been there, done that
*****
Posts: 1123



« Reply #47 on: May 26, 2003, 04:20:38 AM »

Yep. But we're talking about WAV files, not direct input from the signal. The WAV file is limited, isn't it?
Logged

img]http://usuarios.vtr.net/~disaster/sigs/annoyizer.php[/img]
Glenn
I hold this place together
*****
Posts: 786



WWW
« Reply #48 on: May 26, 2003, 05:16:24 AM »

involve something related to turning voltages into bytes.  But I'm not sure that digitization would decrease randomness.  (It usually increases it; at least, it detracts from the accuracy of systematic signals.)
Logged

ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
Neo
Na_th_an
*****
Posts: 2150



« Reply #49 on: May 26, 2003, 06:01:21 AM »

Yes WAV is limited.

Glenn: for turning voltages into bytes, use the AD-Decoder
Logged
Glenn
I hold this place together
*****
Posts: 786



WWW
« Reply #50 on: May 26, 2003, 02:29:10 PM »

conversion process involved when an analog signal goes into a microphone jack and a file results?  Smiley
Logged

ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
Pages: 1 2 3 [4]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!