A simple random number routine in C.
This is a simple random number example in C. This will print a random number from 1 – 64. #include <stdio.h> #include <stdlib.h> int main (void) { srand(time(NULL)); int r = rand() % 64; printf("Random INT: %i\n", r); return 0; }#include <stdio.h> #include <stdlib.h> int main (void) { srand(time(NULL)); int r … Read more