/ Published in: C
Expand |
Embed | Plain Text
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> // rand srand function #include <time.h> // time int main() { int randNumber; // generate random seed srand ( (unsigned)time(0) ); // random number betweem 1 and 10 randNumber = 1+rand()%10; return 0; }
You need to login to post a comment.
