Rand function in c language (useful for random number generating game )
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
// This program will create same sequence of
// random numbers on every program run
for(int i = 0; i<5; i++)
printf(" %d ", rand());
return 0;
}
Comments
Post a Comment