I am trying to create a random number generator that is based on, I think, a standard deviation. My basic RNF is "rand(int()*X+Y", where X equals the seed number, and y equals any number, usually 1, to return values greater than zero. What I want to do is have X reference the mean (median?) of a range so that the random number generated remains in the range. I don't even know if this is the correct formula or not. My actual example will be sports statistics, specifically, the number of attempts of a certain player based on previous data, i.e., John Doe attempts 500 passes a season, or 31.25 per game. My desired formula will generate a random number that will fall between 18-55 passes per game, but will be weighted by the attempts per game average (whereas the weight would be lower if the numebr of pass attempts was 20 per game). I hope this isn't too confusing, and I appreciate any help I can get. Thank you in advance.
Steve
Steve