Mega Code Archive

 
Categories / C / Code Snippets
 

Work with random number

#include <stdlib.h> #include <stdio.h> int main(void) { int j; for(j=0; j<10; j++) printf("%d ", rand()); return 0; }