Is there a function to generate a random int number in C? Or will I have to use a third party library?
rand() is the most convenient way to generate random numbers.
rand()
You may also catch random number from any online service like random.org.