c how to generate 5 random numbers code example Example: c rand range rand() % (max_number + 1 - minimum_number) + minimum_number