title: How to replicate table columns
body: <p>I have a table in PostgreSQL which has the following columns</p>
  
  <pre><code>date        count        day
  _____       ______      _____
  2015-04-01     10          1
  2015-04-02     30          1
  2015-04-03     90          1
  2015-04-04     10          1
  2015-04-05     80          1
  2015-04-06     90          1
  </code></pre>
  
  <p>I want this table to be as for day 2-30.(Generate random numbers for count between 10 and 100).How to replicate the date series in PostgreSQL.Any help is appreciated </p>
  
  <pre><code>date        count        day
  _____       ______      _____
  2015-04-01     10          1
  2015-04-02     30          1
  2015-04-03     90          1
  2015-04-04     10          1
  2015-04-05     80          1
  2015-04-06     90          1
  2015-04-01     10          2
  2015-04-02     40          2
  2015-04-03     90          2
  2015-04-04     10          2
  2015-04-05     80          2
  2015-04-06     80          2
  2015-04-01     60          3
  2015-04-02     30          3
  2015-04-03     60          3
  2015-04-04     20          3
  2015-04-05     80          3
  2015-04-06     90          3
  </code></pre>