in reply to Re: how can i generate random numbers with predefined mean and standard deviation
in thread how can i generate random numbers with predefined mean and standard deviation

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on how can i generate random numbers with predefined mean and standard deviation

Replies are listed 'Best First'.
Re: how can i generate random numbers with predefined mean and standard deviation
by gjb (Vicar) on Aug 23, 2003 at 20:51 UTC

    For an algorithm and its description, you can have a look at "Numerical Recipes in C", it contains source code in C as well. Chapter 7 is relevant for you.

    Hope this helps, -gjb-

Re: how can i generate random numbers with predefined mean and standard deviation
by waswas-fng (Curate) on Aug 23, 2003 at 19:38 UTC
    well you can always check out its source and see how a working version does it and use that as a pointer for how you may do it.

    -Waswas
Re: how can i generate random numbers with predefined mean and standard deviation
by simonm (Vicar) on Aug 24, 2003 at 02:53 UTC
    i am supposed to do it without using Math::Random

    Sounds like homework to me...

Re: how can i generate random numbers with predefined mean and standard deviation
by Anonymous Monk on Aug 24, 2003 at 05:53 UTC
    Why? The only reason I can think of is cause it's homework. Last I checked, the point of doing homework was so you can learn something. You won't learn anything by asking the monks to solve your homework. Try to solve this yourself, and after you get stuck, come here with what you've written and you'll get some help.