in reply to list of random numbers with given avarage

Cool. We used to do this in Physics (undergrad, I hasten to add) when we couldn't get lab results, but we knew what the 'perfect' results were.

You are doing it the hard way. Rather than painfully adjusting your random number function, just fake the random numbers using a noise function. If you do a web search for 'Gaussian' or 'Lorentzian' you should get something useful for random functions.

____________________
Jeremy
I didn't believe in evil until I dated it.

  • Comment on Re: list of random numbers with given avarage

Replies are listed 'Best First'.
Re: Re: list of random numbers with given avarage
by cacharbe (Curate) on Mar 12, 2002 at 13:07 UTC
    <Humor>
    *Sigh* Typical physicists.

    I think they all subscribe to the "Measure with micrometer, mark with chalk, cut with axe" method.

    My roommate in college (now a Phd physics student) used to say "It's only a power of ten, that's well within our desired range".

    GAH!!</Humor>

    C-.