title: Calculating growth rate with initial value using runif and rnorm
body: <p>I am working with a problem in R that has the demand for a product that is normally distributed with a mean of a and standard deviation b. It is estimated to increase c% each year. The market share for year 1 is anywhere between d% and e% with each number in between equally likely, and is expected to grow at f% each year.</p>
  <p>I know I need to use the rnorm function for the demand
  <code>rnorm(1000,a,b)</code> and runif function for the market share <code>runif(1000,1.d,1.e)</code> (adding the 1 in front for easier calculation) year 1 values.</p>
  <p>The problem is asking for what the market share and demand will be over 3 years. I know year 1, but I am not sure how I would set the calculation up in R for years 2 and 3 given the growth rates c and f. I currently have something like <code>MarketSizeGrowth&lt;-cumprod(c(runif(1000,1.d,1.e),rep(1.f,2)</code> for the market size but this is definitely wrong.</p>