Qbasicnews.com

Full Version: Random Numbers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6
Well... get someone else to record 3 minutes of TV static and send it to you as a midi...
Does your MIDI patchmap include a static instrument?

You'd want the recording as a wav file, and just look at the bytes. Even then, if you only had 3 minutes it wouldn't be random.
Well it would be more random than the QB RND function anyhow... is it possible to make at least a demo and see how it works?
static from the TV or radio woudn't be random and why the length of time determines randomness. Smile (Although, I suppose if the duration was too short, it might not be *usefully* random. But 3 minutes worth of data should be an awful lot of data.)
Well then... stop procrastanating someone and make it!
Quote:...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.
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. Smile )
Yep. But we're talking about WAV files, not direct input from the signal. The WAV file is limited, isn't it?
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.)
Yes WAV is limited.

Glenn: for turning voltages into bytes, use the AD-Decoder
Pages: 1 2 3 4 5 6