#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> int main(int argc, char* argv[]) { srand(time(NULL)); printf("%d\n", rand()); printf("%d\n", rand()); printf("%d\n", rand()); return 0; }
Learn hexadecimal, decimal and binary system conversions in under 30 minutes with this course!