so welcome friends
this blog gives the basic information about the rand() and the randomize() function of the dos.h header file.
randomize()
the randomize() function gives us the permission to use the rand function
rand() function
the rand() function which we are going to use is for the purpose of the random number geneerator.
or anything which is going to generate randomly,like if we want to generate the random circles on the screen.then have a look at the following program which is written in the c language
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int gd,gm;
gd=0;
initgraph(&gd,&gm,"C:\\TC\\BGI");
while(!kbhit())
{
for(int i=0;i<=300;i++)
{
circle(rand()%640,rand()%400,10);
}
}
getch();
}