Re: simple way to generate random numbers in c without using library function.



Golden California Girls wrote:

Jasen Betts wrote:
the rate is predictable, the timing of the individual nuclear events are
not.

Yes, individual events are predictable in that they can be influenced.
That is one of the surprises in physics.

Do you have any numbers how big this effect may be, especially in comparison
to the stability of the timing in the measurement equipment?

However the rate of decay is so stable that it is uniform and not random
over a given period. In other words you will get decay counts almost
identical every time you look at the sample. That is why only the least
significant digit might be random. And you need to test that before you
rely on it.

Measuring the rate of decay is a big error. Physics tell us this will
deliver an averaged value, so almost all randomness is removed. Measure
the time between two events instead.

The decay rate itself, for some kinds of decay, has a periodicity of the
earth's orbit around the sun, this due to flavor switching of solar
neutrinos, never mind the half rate decay. Another recent surprise to
physics.

Again, is the decay rate varying enough to be measureable with any
equipment that has a reasonable price tag? And the half rate decay is
well known and can be corrected with a little calculation.

BTW, the dead time (no sensor can separate two events very short after
another) is probably a more relevant problem. But also this can be
corrected.

But just looking at it another way, if your time slice is very tiny, you
will get piles of zero counts, obviously not random. If your slice is big
you get lots of huge counts, but never a zero so obviously not random. All
you can do is use the low order bits, but is the decay rate so stable that
you get the same or a very close count frequently? Unfortunately the
answer is yes. Otherwise you couldn't state its half life.

Again, measure interval times, not counts.

Interval times are normal-distributed, this can be calculated back to
an even distribution if needed.

Side remark: we are currently leaving contact both with the C language
and the thread theme "simple way". So either let's end this or continue
somewhere more appropriate.
--
Greetings,
Jens Schmidt
--
comp.lang.c.moderated - moderation address: clcm@xxxxxxxxxxxx -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
.



Relevant Pages

  • Re: Very Interesting!!!!!!!!!!
    ... new physics are the surprises, and the best surprises are those that flout ... Long enough to cast doubt on whether they do decay. ... Will it be possible to efficiently harness Zero Point energy? ...
    (alt.guitar.amps)
  • Re: simple way to generate random numbers in c without using library function.
    ... That is one of the surprises in physics. ... Measuring the rate of decay is a big error. ... is the decay rate varying enough to be measureable with any ...
    (comp.lang.c.moderated)
  • Just when you think they got a handle on it, this happens...
    ... It's a mystery that presented itself unexpectedly: The radioactive decay of some elements sitting quietly in laboratories on Earth seemed to be influenced by activities inside the sun, ... There is even an outside chance that this unexpected effect is brought about by a previously unknown particle emitted by the sun. "That would be truly remarkable," said Peter Sturrock, Stanford professor emeritus of applied physics and an expert on the inner workings of the sun. ... "Everyone thought it must be due to experimental mistakes, because we're all brought up to believe that decay rates are constant," Sturrock said. ...
    (rec.gambling.poker)
  • Re: Resonance states of the neutron
    ... Observation of the radiative decay mode of the free neutron ... Physics Laboratory, National Institute of Standards and Technology, ... The theory of quantum electrodynamics predicts that beta decay ... accompanied by a continuous spectrum of soft photons. ...
    (sci.physics)
  • Re: Aether - a few idea to define it
    ... physics than yours. ... atom must get 'hit' by an aether particle with sufficient momenta to ... the more momenta is required to trigger the event. ... Within the domain of decay lifetimes, ...
    (sci.physics)