c use the srand code example Example: srand() C #include <stdlib.h> #include <time.h> srand(time(NULL));