C rand() Function
The rand() function in C is a standard library function that generates a pseudo-random number. It is part of the C standard library (stdlib.h). This function is commonly used for generating random numbers for various purposes, such as simulations, games, and randomized algorithms.