title: How to create 1000 objects (for example cube , sphere, cylinder) randomly in opengl?
body: <p>I created a room. This is my code for the room's floor:</p>
  
  <pre><code>    void room(){
      glColor3f(1.0, 1.0 ,0.0);  
      glNormal3f(0,1,0);
      glVertex3f( 500 ,-3.0, 500); 
      glVertex3f(-500 ,-3.0, 500); 
      glVertex3f(-500 ,-3.0,-500); 
      glVertex3f( 500 ,-3.0,-500); 
  }
  </code></pre>
  
  <p>Now I want to generate a lot of objects like cube , sphere , cylinder on the floor randomly. Can you help me How to do it?</p>