How do I make spaces between numbers in a random number generated app in C++?
<p>I need to be able to have spaces come up between each number. Here is my code. Any help would be awesome! This app allows you too have 6 rows of 6 numbers generated for your insta pick numbers between 1 - 49, it has to pick two rows of 6 numbers, 1 - 49 for twist  and 1 row of 6 numbers for tag.   </p>

<pre><code>    #include &lt;iostream&gt; 
    #include &lt;iomanip&gt;
    #include &lt;cstdlib&gt;
    using namespace std;

    int main()
    {
    {
cout &lt;&lt; "*** LOTTO  MAX  INSTA  PICK ***" &lt;&lt; endl;
cout&lt;&lt; " " &lt;&lt; endl &lt;&lt; endl;
    }

    {
cout &lt;&lt; "Your Insta Pick Numbers" &lt;&lt; endl;
cout&lt;&lt; " " &lt;&lt; endl &lt;&lt; endl;
    }
for (int counter = 1; counter &lt;= 24; ++ counter)
{

    cout &lt;&lt; setw(1) &lt;&lt; (1 + rand() % 49);


    if (counter % 6 == 0)
        cout &lt;&lt; endl;
}
{
    cout&lt;&lt; " " &lt;&lt; endl &lt;&lt; endl;
    cout&lt;&lt; " " &lt;&lt; endl &lt;&lt; endl;
}
{
cout &lt;&lt; "Your Twist Numbers" &lt;&lt; endl;
cout&lt;&lt; " " &lt;&lt; endl &lt;&lt; endl;
    }
for (int counter = 1; counter &lt;= 12; ++ counter)
{

    cout &lt;&lt; setw(1) &lt;&lt; (1 + rand() % 49) , "  ";


    if (counter % 6 == 0)
        cout &lt;&lt; endl;

}
{
    cout&lt;&lt; " " &lt;&lt; endl &lt;&lt; endl;
    cout&lt;&lt; " " &lt;&lt; endl &lt;&lt; endl;
}


{
cout &lt;&lt; "Your Tag Numbers" &lt;&lt; endl;
cout&lt;&lt; " " &lt;&lt; endl &lt;&lt; endl;
    }
for (int counter = 1; counter &lt;= 6; ++ counter)
{

    cout &lt;&lt; setw(1) &lt;&lt; (1 + rand() % 12);


    if (counter % 6 == 0)
        cout &lt;&lt; endl;

}
{
    cout&lt;&lt; " " &lt;&lt; endl &lt;&lt; endl;
   cout&lt;&lt; " " &lt;&lt; endl &lt;&lt; endl;
}
{
cout &lt;&lt; "Thank you for playing!! please check ticket a year minus a day               from date of purchase" &lt;&lt;endl;
}
    };
</code></pre>
