#include #include #include #include void main() { int Driver; /* The Graphics device driver */ int Mode; /* The Graphics mode value */ int i,ee,x,y,c; struct viewporttype vp; Driver = DETECT; /* Request auto-detection */ initgraph( &Driver, &Mode, "" ); for (i=0; i<32767; i++) { x=random(640); y=random(480); c=random(16); putpixel(x,y,c); } getche(); closegraph(); /* Return the system to text mode */ }