c get ranomnumber in rage 0 to 100 code example Example: c rand range rand() % (max_number + 1 - minimum_number) + minimum_number