<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Maybe this may be of interest:<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.random.org/sounds/description/">http://www.random.org/sounds/description/</a><br>
<br>
Kind regards,<br>
Loerenzo<br>
<br>
IOhannes m zmoelnig wrote:
<blockquote cite="mid:4A51DFA8.8090900@iem.at" type="cite">Andrew
Faraday wrote:
  <br>
  <blockquote type="cite">I'm fairly sure that [snapshot~] doesn't
generate random numbers, but marks the current point of an audio
signal. </blockquote>
  <br>
indeed
  <br>
  <br>
  <blockquote type="cite">Although this whole thing's got me
thinking...
    <br>
If you use [snapshot~], attached to a real world sound source [adc~] to
generate random numbers, then increasing volume would increase the
range of your random generation. For instance [adc~]|[snapshot~] (plus
a bang)|[+ 1]|[* 10]|[int]
    <br>
  </blockquote>
  <br>
first of all: [adc~] is _not_ a random number generator.
  <br>
it is an interface to the outside world. whatever is attached to your
soundcard (or whatever feeds [adc~] will determine what comes out of
[snapshot~].
  <br>
  <br>
e.g. if i connect [adc~] to [dac~] then i might hear whatever is
recorded by my built-in microphone. i would not consider this "noise"
in the strict mathematical sense.
  <br>
  <br>
if you connect an analog noise generator to your soundcard, then you
might get a nice (and truely random, though coloured) noise.
  <br>
  <br>
now a real-world analog-digital converter always produces a (hopefully
small) bit of thermal nose, which can be used as either a noise-source
by itself (but take care, if you speak into the microphone...) or as a
truely-random seed generator for a pseudo-random number generator.
  <br>
  <br>
the latter might give more what you would expect.
  <br>
  <br>
the former has (apart from the "microphone" problem) the drawback, that
it will only generate a single "random" number per audio-block (or to
be precise: 64 for of them); which might be just too few for your
application...
  <br>
  <br>
  <br>
  <blockquote type="cite"><br>
In this case a sound source at a solid 1 - -1 volume (such as [osc~])
would give you a number from 0 to 20, when the bang is sent.
    <br>
but a quieter sound source e.g. 0.2 - -0.2 would provide a number from
0 - 4
    <br>
    <br>
Anyone fault my logic?
    <br>
  </blockquote>
  <br>
simple primary school mathematics?
  <br>
([-1..1] + 1)*10 = [0..2]*10 = [0..20]
  <br>
([-0.2..0.2] + 1)*10 = [0.8..1.2]*10 = [8..12]
  <br>
  <br>
fmgasdr
  <br>
IOhannes
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list
UNSUBSCRIBE and account-management -&gt; <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
  </pre>
</blockquote>
</body>
</html>