in reply to help finding mean, numbers above and below mean from an exponential distribution

You're never assigning anything to @first, so it's no big surprise that the code using it doesn't do what you want...

Also, do yourself a favor and use some consistent indenting; and of course strictures.

  • Comment on Re: help finding mean, numbers above and below mean from an exponential distribution
  • Download Code