title: how to make a random in c++ program
body: <p>I am want to make  my program  to choose a random number </p>
  
  <pre><code> #include &lt;iostream&gt;
     using namespace std;
     int main(){
     int x=100 y=40;
     while (true)
       {if(x&gt;y)
         {x--;}
       else
         {break;}}}
  </code></pre>