Tuesday, 17 May 2011

C Program to Generate Random Numbers

#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
/* prints a random number in the range 0 to 99 */
int main(void)
{
randomize();
printf("Random number in the 0-99 range: %d\n", random (100));
getch();
return 0;
}

No comments:

Post a Comment